移除不必要的构造函数传参
This commit is contained in:
Generated
+1
-1
@@ -220,7 +220,7 @@
|
||||
//
|
||||
this.button33.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.button33.JoinLeft = true;
|
||||
this.button33.Location = new System.Drawing.Point(152, 3);
|
||||
this.button33.Location = new System.Drawing.Point(151, 3);
|
||||
this.button33.Name = "button33";
|
||||
this.button33.Size = new System.Drawing.Size(75, 32);
|
||||
this.button33.TabIndex = 4;
|
||||
|
||||
@@ -13,10 +13,8 @@ namespace AntdUIDemo.Views
|
||||
{
|
||||
public partial class StackPanelDemo : UserControl
|
||||
{
|
||||
private Window form;
|
||||
public StackPanelDemo(Window _form)
|
||||
public StackPanelDemo()
|
||||
{
|
||||
form = _form;
|
||||
InitializeComponent();
|
||||
//设置默认值
|
||||
InitData();
|
||||
@@ -45,7 +43,6 @@ namespace AntdUIDemo.Views
|
||||
WaveSize = 0,
|
||||
Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))),
|
||||
};
|
||||
form.AutoDpi(control);
|
||||
stackPanel.Controls.Add(control);
|
||||
}
|
||||
}
|
||||
@@ -76,7 +73,6 @@ namespace AntdUIDemo.Views
|
||||
WaveSize = 0,
|
||||
Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))),
|
||||
};
|
||||
form.AutoDpi(control);
|
||||
stackPanel.Controls.Add(control);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user