Commit 5b3be174 LN

1

1 个父辈 958b95f7
...@@ -48,7 +48,7 @@ namespace OnlineStore.ACPackingStore ...@@ -48,7 +48,7 @@ namespace OnlineStore.ACPackingStore
} }
this.groupBox3.Text = "设备[" + BoxBean.CID + "]状态"; this.groupBox3.Text = "设备[" + BoxBean.CID + "]状态";
this.Text = BoxBean.Name; this.Text = BoxBean.Name;
axisMoveControl1.LoadData(BoxBean, BoxBean.moveAxisList.ToArray());
ACBoxPosition ktkPosition = null; ACBoxPosition ktkPosition = null;
if (BoxBean.PositionNumList.Count > 0) if (BoxBean.PositionNumList.Count > 0)
{ {
......
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
// button1 // button1
// //
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.Location = new System.Drawing.Point(691, 555); this.button1.Location = new System.Drawing.Point(667, 551);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(126, 37); this.button1.Size = new System.Drawing.Size(126, 37);
this.button1.TabIndex = 254; this.button1.TabIndex = 254;
......
...@@ -539,17 +539,14 @@ ...@@ -539,17 +539,14 @@
// //
// comboBox1 // comboBox1
// //
this.comboBox1.DisplayMember = "ProName";
this.comboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.comboBox1.FormattingEnabled = true; this.comboBox1.FormattingEnabled = true;
this.comboBox1.ItemHeight = 25; this.comboBox1.ItemHeight = 20;
this.comboBox1.Location = new System.Drawing.Point(88, 26); this.comboBox1.Location = new System.Drawing.Point(88, 26);
this.comboBox1.Name = "comboBox1"; this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(187, 31); this.comboBox1.Size = new System.Drawing.Size(187, 28);
this.comboBox1.TabIndex = 234; this.comboBox1.TabIndex = 234;
this.comboBox1.ValueMember = "ProName";
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
// //
// label49 // label49
......
...@@ -205,7 +205,7 @@ namespace OnlineStore.ACPackingStore ...@@ -205,7 +205,7 @@ namespace OnlineStore.ACPackingStore
} }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{ {
if (comboBox1.SelectedIndex > 0) if (comboBox1.SelectedIndex >= 0)
{ {
ConfigMoveAxis axis = axisList[comboBox1.SelectedIndex]; ConfigMoveAxis axis = axisList[comboBox1.SelectedIndex];
PortName = axis.DeviceName; PortName = axis.DeviceName;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!