|
@@ -29,7 +29,7 @@
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
uiTitlePanel1 = new Sunny.UI.UITitlePanel();
|
|
|
- btn_DryRun = new Sunny.UI.UISymbolButton();
|
|
|
+ btn_DryRun = new UserCounterButton();
|
|
|
btn_AlarmReset = new Sunny.UI.UISymbolButton();
|
|
|
btn_MachineReset = new Sunny.UI.UISymbolButton();
|
|
|
btn_Stop = new Sunny.UI.UISymbolButton();
|
|
@@ -71,18 +71,21 @@
|
|
|
//
|
|
|
// btn_DryRun
|
|
|
//
|
|
|
- btn_DryRun.Font = new Font("微软雅黑", 21.75F);
|
|
|
- btn_DryRun.Location = new Point(870, 68);
|
|
|
+ btn_DryRun.BackColor = Color.Transparent;
|
|
|
+ btn_DryRun.CounterButtonState = false;
|
|
|
+ btn_DryRun.CounterButtonSymbol = 558653;
|
|
|
+ btn_DryRun.FillColor = Color.Transparent;
|
|
|
+ btn_DryRun.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ btn_DryRun.Location = new Point(871, 68);
|
|
|
btn_DryRun.MinimumSize = new Size(1, 1);
|
|
|
btn_DryRun.Name = "btn_DryRun";
|
|
|
- btn_DryRun.Radius = 10;
|
|
|
- btn_DryRun.Size = new Size(181, 84);
|
|
|
- btn_DryRun.Symbol = 61452;
|
|
|
- btn_DryRun.SymbolSize = 55;
|
|
|
+ btn_DryRun.RectColor = Color.FromArgb(64, 128, 204);
|
|
|
+ btn_DryRun.Size = new Size(184, 84);
|
|
|
btn_DryRun.TabIndex = 4;
|
|
|
- btn_DryRun.TagString = "空运行";
|
|
|
- btn_DryRun.Text = "空运行";
|
|
|
- btn_DryRun.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ btn_DryRun.Text = null;
|
|
|
+ btn_DryRun.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ btn_DryRun.VariableName = "空运行";
|
|
|
+ btn_DryRun.ClickEvent += btn_DryRun_ClickEvent;
|
|
|
//
|
|
|
// btn_AlarmReset
|
|
|
//
|
|
@@ -98,6 +101,7 @@
|
|
|
btn_AlarmReset.TagString = "报警复位";
|
|
|
btn_AlarmReset.Text = "报警复位";
|
|
|
btn_AlarmReset.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ btn_AlarmReset.Click += btn_Start_Common_Click;
|
|
|
//
|
|
|
// btn_MachineReset
|
|
|
//
|
|
@@ -113,6 +117,7 @@
|
|
|
btn_MachineReset.TagString = "机械复位";
|
|
|
btn_MachineReset.Text = "机械复位";
|
|
|
btn_MachineReset.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ btn_MachineReset.Click += btn_Start_Common_Click;
|
|
|
//
|
|
|
// btn_Stop
|
|
|
//
|
|
@@ -128,6 +133,7 @@
|
|
|
btn_Stop.TagString = "总停止";
|
|
|
btn_Stop.Text = "总停止";
|
|
|
btn_Stop.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ btn_Stop.Click += btn_Start_Common_Click;
|
|
|
//
|
|
|
// btn_Start
|
|
|
//
|
|
@@ -143,6 +149,7 @@
|
|
|
btn_Start.TagString = "总启动";
|
|
|
btn_Start.Text = "总启动";
|
|
|
btn_Start.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ btn_Start.Click += btn_Start_Common_Click;
|
|
|
//
|
|
|
// uiTitlePanel2
|
|
|
//
|
|
@@ -182,24 +189,26 @@
|
|
|
device_SSJ.TabIndex = 3;
|
|
|
device_SSJ.Text = "userDeviceUnitControl1";
|
|
|
device_SSJ.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_SSJ.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_CX
|
|
|
//
|
|
|
device_CX.BackColor = Color.Transparent;
|
|
|
- device_CX.CloseVariableName = "粗细工位关";
|
|
|
- device_CX.EquipmentUnitName = "粗细工位";
|
|
|
+ device_CX.CloseVariableName = "粗洗工位关";
|
|
|
+ device_CX.EquipmentUnitName = "粗洗工位";
|
|
|
device_CX.FillColor = Color.Transparent;
|
|
|
device_CX.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
device_CX.Location = new Point(19, 126);
|
|
|
device_CX.MinimumSize = new Size(1, 1);
|
|
|
device_CX.Name = "device_CX";
|
|
|
- device_CX.OpenVariableName = "粗细工位开";
|
|
|
+ device_CX.OpenVariableName = "粗洗工位开";
|
|
|
device_CX.RectColor = Color.Transparent;
|
|
|
device_CX.Size = new Size(253, 46);
|
|
|
device_CX.State = false;
|
|
|
device_CX.TabIndex = 1;
|
|
|
device_CX.Text = "userDeviceUnitControl1";
|
|
|
device_CX.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_CX.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_JX
|
|
|
//
|
|
@@ -218,6 +227,7 @@
|
|
|
device_JX.TabIndex = 2;
|
|
|
device_JX.Text = "userDeviceUnitControl1";
|
|
|
device_JX.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_JX.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_GHL
|
|
|
//
|
|
@@ -236,6 +246,7 @@
|
|
|
device_GHL.TabIndex = 3;
|
|
|
device_GHL.Text = "userDeviceUnitControl1";
|
|
|
device_GHL.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_GHL.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_TH
|
|
|
//
|
|
@@ -254,6 +265,7 @@
|
|
|
device_TH.TabIndex = 2;
|
|
|
device_TH.Text = "userDeviceUnitControl1";
|
|
|
device_TH.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_TH.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_LQS
|
|
|
//
|
|
@@ -272,6 +284,7 @@
|
|
|
device_LQS.TabIndex = 3;
|
|
|
device_LQS.Text = "userDeviceUnitControl1";
|
|
|
device_LQS.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_LQS.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_SFL
|
|
|
//
|
|
@@ -290,6 +303,7 @@
|
|
|
device_SFL.TabIndex = 2;
|
|
|
device_SFL.Text = "userDeviceUnitControl1";
|
|
|
device_SFL.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_SFL.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// device_TZ
|
|
|
//
|
|
@@ -308,6 +322,7 @@
|
|
|
device_TZ.TabIndex = 0;
|
|
|
device_TZ.Text = "userDeviceUnitControl1";
|
|
|
device_TZ.TextAlignment = ContentAlignment.MiddleCenter;
|
|
|
+ device_TZ.ClickEvent += device_Common_ClickEvent;
|
|
|
//
|
|
|
// uiTitlePanel3
|
|
|
//
|
|
@@ -357,7 +372,6 @@
|
|
|
|
|
|
private Sunny.UI.UITitlePanel uiTitlePanel1;
|
|
|
private Sunny.UI.UISymbolButton btn_Start;
|
|
|
- private Sunny.UI.UISymbolButton btn_DryRun;
|
|
|
private Sunny.UI.UISymbolButton btn_AlarmReset;
|
|
|
private Sunny.UI.UISymbolButton btn_MachineReset;
|
|
|
private Sunny.UI.UISymbolButton btn_Stop;
|
|
@@ -372,5 +386,6 @@
|
|
|
private UserDeviceUnitControl device_CX;
|
|
|
private Sunny.UI.UITitlePanel uiTitlePanel3;
|
|
|
private Sunny.UI.UITextBox txt_Log;
|
|
|
+ private UserCounterButton btn_DryRun;
|
|
|
}
|
|
|
}
|