[英]c# Change Order of Designer Generated Code for Custom Control extending User Control
I currently have a C# User Control.我目前有一个 C# 用户控件。 It seems that I need to change the order of the designer generated code.
看来我需要更改设计器生成的代码的顺序。 GraphControlMode should be set before the graph controls properties as it is responsible for creating the correct controller type.
GraphControlMode 应该在图形控件属性之前设置,因为它负责创建正确的控制器类型。
//
// graphControl2
//
this.graphControl2.Controller.CenterX = ((uint)(623u));
this.graphControl2.Controller.CenterY = ((uint)(492u));
this.graphControl2.Controller.ChartDiameter = ((uint)(834u));
this.graphControl2.Controller.Interval = 100D;
this.graphControl2.Controller.IsNormalized = false;
this.graphControl2.Controller.Pause = false;
this.graphControl2.Controller.Speed = 50D;
this.graphControl2.Controller.TimeElapsed = 0D;
this.graphControl2.Controller.View = livePieGraph1;
this.graphControl2.GraphControlMode = GraphingControl.GraphControl.GraphMode.LIVEPIEGRAPH;
Is there a way to do this?有没有办法做到这一点?
What's the problem?有什么问题? Just cut the line and paste it to the correct position.
只需剪切线并将其粘贴到正确的位置即可。 It's designer generated code and it's still code and not magic.
它是设计师生成的代码,它仍然是代码而不是魔法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.