Commit 63febf3c LN

中英文调整

1 个父辈 aa3dd917
......@@ -18,6 +18,8 @@
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnCDLed = new System.Windows.Forms.Button();
this.btnDevideLed = new System.Windows.Forms.Button();
this.btnCloseLed = new System.Windows.Forms.Button();
this.txtSlaveId = new System.Windows.Forms.TextBox();
this.btnOpenLed = new System.Windows.Forms.Button();
......@@ -63,8 +65,6 @@
this.label4 = new System.Windows.Forms.Label();
this.txtAI1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btnCDLed = new System.Windows.Forms.Button();
this.btnDevideLed = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
......@@ -110,13 +110,36 @@
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
//
// btnCDLed
//
this.btnCDLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCDLed.Location = new System.Drawing.Point(173, 338);
this.btnCDLed.Name = "btnCDLed";
this.btnCDLed.Size = new System.Drawing.Size(144, 43);
this.btnCDLed.TabIndex = 258;
this.btnCDLed.Text = "关闭设备照明";
this.btnCDLed.UseVisualStyleBackColor = true;
this.btnCDLed.Click += new System.EventHandler(this.btnCDLed_Click);
//
// btnDevideLed
//
this.btnDevideLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDevideLed.Location = new System.Drawing.Point(173, 292);
this.btnDevideLed.Name = "btnDevideLed";
this.btnDevideLed.Size = new System.Drawing.Size(144, 43);
this.btnDevideLed.TabIndex = 257;
this.btnDevideLed.Text = "打开设备照明";
this.btnDevideLed.UseVisualStyleBackColor = true;
this.btnDevideLed.Click += new System.EventHandler(this.btnDevideLed_Click);
//
// btnCloseLed
//
this.btnCloseLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseLed.Location = new System.Drawing.Point(16, 356);
this.btnCloseLed.Location = new System.Drawing.Point(16, 338);
this.btnCloseLed.Name = "btnCloseLed";
this.btnCloseLed.Size = new System.Drawing.Size(144, 34);
this.btnCloseLed.Size = new System.Drawing.Size(144, 43);
this.btnCloseLed.TabIndex = 256;
this.btnCloseLed.Text = "关闭相机照明";
this.btnCloseLed.UseVisualStyleBackColor = true;
......@@ -135,9 +158,9 @@
// btnOpenLed
//
this.btnOpenLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenLed.Location = new System.Drawing.Point(16, 316);
this.btnOpenLed.Location = new System.Drawing.Point(16, 292);
this.btnOpenLed.Name = "btnOpenLed";
this.btnOpenLed.Size = new System.Drawing.Size(144, 34);
this.btnOpenLed.Size = new System.Drawing.Size(144, 43);
this.btnOpenLed.TabIndex = 255;
this.btnOpenLed.Text = "打开相机照明";
this.btnOpenLed.UseVisualStyleBackColor = true;
......@@ -177,9 +200,9 @@
// btnCloseAxisBreak
//
this.btnCloseAxisBreak.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAxisBreak.Location = new System.Drawing.Point(173, 260);
this.btnCloseAxisBreak.Location = new System.Drawing.Point(173, 236);
this.btnCloseAxisBreak.Name = "btnCloseAxisBreak";
this.btnCloseAxisBreak.Size = new System.Drawing.Size(144, 34);
this.btnCloseAxisBreak.Size = new System.Drawing.Size(144, 43);
this.btnCloseAxisBreak.TabIndex = 253;
this.btnCloseAxisBreak.Text = "关闭刹车";
this.btnCloseAxisBreak.UseVisualStyleBackColor = true;
......@@ -201,7 +224,7 @@
this.btnReadIO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReadIO.Location = new System.Drawing.Point(16, 133);
this.btnReadIO.Name = "btnReadIO";
this.btnReadIO.Size = new System.Drawing.Size(144, 34);
this.btnReadIO.Size = new System.Drawing.Size(144, 43);
this.btnReadIO.TabIndex = 243;
this.btnReadIO.Text = "读取IO状态";
this.btnReadIO.UseVisualStyleBackColor = true;
......@@ -210,9 +233,9 @@
// btnOpenAxisBreak
//
this.btnOpenAxisBreak.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenAxisBreak.Location = new System.Drawing.Point(173, 220);
this.btnOpenAxisBreak.Location = new System.Drawing.Point(173, 189);
this.btnOpenAxisBreak.Name = "btnOpenAxisBreak";
this.btnOpenAxisBreak.Size = new System.Drawing.Size(144, 34);
this.btnOpenAxisBreak.Size = new System.Drawing.Size(144, 43);
this.btnOpenAxisBreak.TabIndex = 252;
this.btnOpenAxisBreak.Text = "打开刹车";
this.btnOpenAxisBreak.UseVisualStyleBackColor = true;
......@@ -234,7 +257,7 @@
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(173, 133);
this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(144, 34);
this.btnWriteSingleDO.Size = new System.Drawing.Size(144, 43);
this.btnWriteSingleDO.TabIndex = 232;
this.btnWriteSingleDO.Text = "写入DO";
this.btnWriteSingleDO.UseVisualStyleBackColor = true;
......@@ -264,12 +287,13 @@
// btnReadAllDi
//
this.btnReadAllDi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReadAllDi.Location = new System.Drawing.Point(16, 168);
this.btnReadAllDi.Location = new System.Drawing.Point(69, 126);
this.btnReadAllDi.Name = "btnReadAllDi";
this.btnReadAllDi.Size = new System.Drawing.Size(144, 34);
this.btnReadAllDi.Size = new System.Drawing.Size(111, 26);
this.btnReadAllDi.TabIndex = 244;
this.btnReadAllDi.Text = "读取所有DI";
this.btnReadAllDi.UseVisualStyleBackColor = true;
this.btnReadAllDi.Visible = false;
this.btnReadAllDi.Click += new System.EventHandler(this.btnReadAllDi_Click);
//
// cmbWriteValue
......@@ -316,20 +340,21 @@
// btnReadAllDo
//
this.btnReadAllDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReadAllDo.Location = new System.Drawing.Point(173, 168);
this.btnReadAllDo.Location = new System.Drawing.Point(226, 126);
this.btnReadAllDo.Name = "btnReadAllDo";
this.btnReadAllDo.Size = new System.Drawing.Size(144, 34);
this.btnReadAllDo.Size = new System.Drawing.Size(111, 26);
this.btnReadAllDo.TabIndex = 245;
this.btnReadAllDo.Text = "读取所有DO";
this.btnReadAllDo.UseVisualStyleBackColor = true;
this.btnReadAllDo.Visible = false;
this.btnReadAllDo.Click += new System.EventHandler(this.btnReadAllDo_Click);
//
// btnCloseDoor
//
this.btnCloseDoor.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseDoor.Location = new System.Drawing.Point(16, 260);
this.btnCloseDoor.Location = new System.Drawing.Point(16, 236);
this.btnCloseDoor.Name = "btnCloseDoor";
this.btnCloseDoor.Size = new System.Drawing.Size(144, 34);
this.btnCloseDoor.Size = new System.Drawing.Size(144, 43);
this.btnCloseDoor.TabIndex = 249;
this.btnCloseDoor.Text = "关闭仓门";
this.btnCloseDoor.UseVisualStyleBackColor = true;
......@@ -338,9 +363,9 @@
// btnOpenDoor
//
this.btnOpenDoor.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDoor.Location = new System.Drawing.Point(16, 220);
this.btnOpenDoor.Location = new System.Drawing.Point(16, 189);
this.btnOpenDoor.Name = "btnOpenDoor";
this.btnOpenDoor.Size = new System.Drawing.Size(144, 34);
this.btnOpenDoor.Size = new System.Drawing.Size(144, 43);
this.btnOpenDoor.TabIndex = 248;
this.btnOpenDoor.Text = "打开仓门";
this.btnOpenDoor.UseVisualStyleBackColor = true;
......@@ -643,28 +668,6 @@
this.label1.Text = "1:";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnCDLed
//
this.btnCDLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCDLed.Location = new System.Drawing.Point(173, 356);
this.btnCDLed.Name = "btnCDLed";
this.btnCDLed.Size = new System.Drawing.Size(144, 34);
this.btnCDLed.TabIndex = 258;
this.btnCDLed.Text = "关闭设备照明";
this.btnCDLed.UseVisualStyleBackColor = true;
this.btnCDLed.Click += new System.EventHandler(this.btnCDLed_Click);
//
// btnDevideLed
//
this.btnDevideLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDevideLed.Location = new System.Drawing.Point(173, 316);
this.btnDevideLed.Name = "btnDevideLed";
this.btnDevideLed.Size = new System.Drawing.Size(144, 34);
this.btnDevideLed.TabIndex = 257;
this.btnDevideLed.Text = "打开设备照明";
this.btnDevideLed.UseVisualStyleBackColor = true;
this.btnDevideLed.Click += new System.EventHandler(this.btnDevideLed_Click);
//
// FrmIOStatus
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
......
......@@ -50,16 +50,8 @@ namespace OnlineStore.ACSingleStore
foreach (ConfigIO ioValue in boxBean.Config.StoreDIList.Values)
{
this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
IOTextControl control = new IOTextControl(ioValue.ElectricalDefinition + "_" + ioValue.Explain, ioValue.ProName);
control.Click += Control_Click;
//IOTextControl control = new IOTextControl();
//control.IOName = ioValue.ElectricalDefinition + "_" + ResourceCulture.GetString(ioValue.ElectricalDefinition, ioValue.Explain);
//control.IOValue = 0;
//control.isCanClick = false;
//control.Name = "IO_" + ioValue.ProName;
//control.Size = new System.Drawing.Size(200, 25);
//control.TabIndex = 0;
IOTextControl control = new IOTextControl(ioValue.DisplayName, ioValue.ProName);
control.Click += Control_Click;
this.tableLayoutPanel1.Controls.Add(control, 0, roleindex);
roleindex++;
DIControlList.Add(ioValue.ProName, control);
......@@ -71,16 +63,8 @@ namespace OnlineStore.ACSingleStore
foreach (ConfigIO ioValue in boxBean.Config.StoreDOList.Values)
{
this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 28));
IOTextControl control = new IOTextControl(ioValue.ElectricalDefinition + "_" + ioValue.Explain, ioValue.ProName);
control.Click += Control_Click;
//IOTextControl control = new IOTextControl();
//control.IOName = ioValue.ElectricalDefinition + "_" + ResourceCulture.GetString(ioValue.ElectricalDefinition, ioValue.Explain);
//control.IOValue = 0;
//control.isCanClick = true;
////control.Location = new System.Drawing.Point(0, 25*roleindex);
//control.Name = "IO_" + ioValue.ProName;
//control.Size = new System.Drawing.Size(200, 25);
//control.TabIndex = 0;
IOTextControl control = new IOTextControl(ioValue.DisplayName, ioValue.ProName);
control.Click += Control_Click;
this.tableLayoutPanel2.Controls.Add(control, 0, roleindex);
roleindex++;
DOControlList.Add(ioValue.ProName, control);
......@@ -339,5 +323,10 @@ namespace OnlineStore.ACSingleStore
IOManager.IOMove(IO_Type.Device_Led, IO_VALUE.LOW);
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
}
}
......@@ -563,9 +563,9 @@
this.btnHul.BackColor = System.Drawing.Color.White;
this.btnHul.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnHul.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnHul.Location = new System.Drawing.Point(383, 8);
this.btnHul.Location = new System.Drawing.Point(383, 4);
this.btnHul.Name = "btnHul";
this.btnHul.Size = new System.Drawing.Size(149, 38);
this.btnHul.Size = new System.Drawing.Size(149, 45);
this.btnHul.TabIndex = 263;
this.btnHul.Text = "忽略夹爪检测信号";
this.btnHul.UseVisualStyleBackColor = false;
......@@ -577,9 +577,9 @@
this.btnCloseDLed.BackColor = System.Drawing.Color.White;
this.btnCloseDLed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseDLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseDLed.Location = new System.Drawing.Point(260, 49);
this.btnCloseDLed.Location = new System.Drawing.Point(260, 54);
this.btnCloseDLed.Name = "btnCloseDLed";
this.btnCloseDLed.Size = new System.Drawing.Size(117, 38);
this.btnCloseDLed.Size = new System.Drawing.Size(117, 45);
this.btnCloseDLed.TabIndex = 262;
this.btnCloseDLed.Text = "关闭设备照明";
this.btnCloseDLed.UseVisualStyleBackColor = false;
......@@ -590,9 +590,9 @@
this.btnOpenDLed.BackColor = System.Drawing.Color.White;
this.btnOpenDLed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDLed.Location = new System.Drawing.Point(260, 8);
this.btnOpenDLed.Location = new System.Drawing.Point(260, 4);
this.btnOpenDLed.Name = "btnOpenDLed";
this.btnOpenDLed.Size = new System.Drawing.Size(117, 38);
this.btnOpenDLed.Size = new System.Drawing.Size(117, 45);
this.btnOpenDLed.TabIndex = 261;
this.btnOpenDLed.Text = "打开设备照明";
this.btnOpenDLed.UseVisualStyleBackColor = false;
......@@ -603,9 +603,9 @@
this.btnCloseLed.BackColor = System.Drawing.Color.White;
this.btnCloseLed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseLed.Location = new System.Drawing.Point(137, 49);
this.btnCloseLed.Location = new System.Drawing.Point(137, 54);
this.btnCloseLed.Name = "btnCloseLed";
this.btnCloseLed.Size = new System.Drawing.Size(117, 38);
this.btnCloseLed.Size = new System.Drawing.Size(117, 45);
this.btnCloseLed.TabIndex = 260;
this.btnCloseLed.Text = "关闭相机照明";
this.btnCloseLed.UseVisualStyleBackColor = false;
......@@ -616,9 +616,9 @@
this.btnClearLog.BackColor = System.Drawing.Color.White;
this.btnClearLog.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClearLog.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClearLog.Location = new System.Drawing.Point(383, 49);
this.btnClearLog.Location = new System.Drawing.Point(383, 54);
this.btnClearLog.Name = "btnClearLog";
this.btnClearLog.Size = new System.Drawing.Size(149, 38);
this.btnClearLog.Size = new System.Drawing.Size(149, 45);
this.btnClearLog.TabIndex = 224;
this.btnClearLog.Text = "清理日志";
this.btnClearLog.UseVisualStyleBackColor = false;
......@@ -629,9 +629,9 @@
this.btnOpenLed.BackColor = System.Drawing.Color.White;
this.btnOpenLed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenLed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenLed.Location = new System.Drawing.Point(137, 8);
this.btnOpenLed.Location = new System.Drawing.Point(137, 4);
this.btnOpenLed.Name = "btnOpenLed";
this.btnOpenLed.Size = new System.Drawing.Size(117, 38);
this.btnOpenLed.Size = new System.Drawing.Size(117, 45);
this.btnOpenLed.TabIndex = 259;
this.btnOpenLed.Text = "打开相机照明";
this.btnOpenLed.UseVisualStyleBackColor = false;
......@@ -642,9 +642,9 @@
this.btnCloseDoor.BackColor = System.Drawing.Color.White;
this.btnCloseDoor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseDoor.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseDoor.Location = new System.Drawing.Point(14, 49);
this.btnCloseDoor.Location = new System.Drawing.Point(14, 54);
this.btnCloseDoor.Name = "btnCloseDoor";
this.btnCloseDoor.Size = new System.Drawing.Size(117, 38);
this.btnCloseDoor.Size = new System.Drawing.Size(117, 45);
this.btnCloseDoor.TabIndex = 258;
this.btnCloseDoor.Text = "关闭仓门";
this.btnCloseDoor.UseVisualStyleBackColor = false;
......@@ -655,9 +655,9 @@
this.btnOpenDoor.BackColor = System.Drawing.Color.White;
this.btnOpenDoor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDoor.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDoor.Location = new System.Drawing.Point(14, 8);
this.btnOpenDoor.Location = new System.Drawing.Point(14, 4);
this.btnOpenDoor.Name = "btnOpenDoor";
this.btnOpenDoor.Size = new System.Drawing.Size(117, 38);
this.btnOpenDoor.Size = new System.Drawing.Size(117, 45);
this.btnOpenDoor.TabIndex = 257;
this.btnOpenDoor.Text = "打开仓门";
this.btnOpenDoor.UseVisualStyleBackColor = false;
......@@ -669,9 +669,9 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.richTextBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.richTextBox1.Location = new System.Drawing.Point(5, 91);
this.richTextBox1.Location = new System.Drawing.Point(5, 104);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(534, 526);
this.richTextBox1.Size = new System.Drawing.Size(534, 513);
this.richTextBox1.TabIndex = 256;
this.richTextBox1.Text = "";
this.richTextBox1.Visible = false;
......
......@@ -314,4 +314,10 @@ Run,运行中,Runing
Runing,运行中,Runing
OutStorEnd,出库完成,OutStorEnd
FrmStoreBox_btnCloseDLed_Text,关闭设备照明,Turn off lighting
FrmStoreBox_btnOpenDLed_Text,打开设备照明,Turn on lighting
\ No newline at end of file
FrmStoreBox_btnOpenDLed_Text,打开设备照明,Turn on lighting
FrmStoreBox_btnOpenAutoInOut_Text,开启自动出入库, start auto storage and retrieval
FrmStoreBox_btnHul_Text,忽略夹爪检测信号,Ignore the gripper detection signal
FrmStoreBox_lblTempStr_Text,FrmStoreBox_lblTempStr_Text,FrmStoreBox_lblTempStr_Text
Y11,设备照明开,Equipment lighting on
FrmIOStatus_btnCDLed_Text,关闭设备照明,Turn off equipment lighting
FrmIOStatus_btnDevideLed_Text,打开设备照明,Turn on equipment lighting
\ No newline at end of file
......@@ -253,6 +253,16 @@ namespace OnlineStore.LoadCSVLibrary
{
}
}
public string DisplayName
{
get
{
return ElectricalDefinition + "_" + CSVResourceControl.GetString(ElectricalDefinition, Explain);
}
set
{
}
}
public override int GetValue()
{
return GetIOValue();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!