diff --git a/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.Designer.cs b/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.Designer.cs index 50fcc4a..9b7fabe 100644 --- a/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.Designer.cs +++ b/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.Designer.cs @@ -29,8 +29,8 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.panel1 = new System.Windows.Forms.Panel(); this.txtLastScanL = new System.Windows.Forms.TextBox(); @@ -73,11 +73,11 @@ this.txtAllQty = new System.Windows.Forms.Label(); this.panel3 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel(); + this.lbCfg = new System.Windows.Forms.Label(); this.lbTime = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.focusTimer = new System.Windows.Forms.Timer(this.components); this.dateTimer = new System.Windows.Forms.Timer(this.components); - this.lbCfg = new System.Windows.Forms.Label(); this.tableLayoutPanel1.SuspendLayout(); this.panel1.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); @@ -106,15 +106,15 @@ this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 8; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 140F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 6F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 224F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 140F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 84F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 140F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 160F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 7F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 256F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 160F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 96F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 160F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 98F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(2347, 1540); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 112F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(2560, 1760); this.tableLayoutPanel1.TabIndex = 0; // // panel1 @@ -132,10 +132,10 @@ this.panel1.Controls.Add(this.btnSearch); this.panel1.Controls.Add(this.label1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(4, 149); + this.panel1.Location = new System.Drawing.Point(4, 170); this.panel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(2339, 218); + this.panel1.Size = new System.Drawing.Size(2552, 250); this.panel1.TabIndex = 0; // // txtLastScanL @@ -144,11 +144,11 @@ this.txtLastScanL.BorderStyle = System.Windows.Forms.BorderStyle.None; this.txtLastScanL.Font = new System.Drawing.Font("宋体", 22.2F, System.Drawing.FontStyle.Bold); this.txtLastScanL.ForeColor = System.Drawing.Color.White; - this.txtLastScanL.Location = new System.Drawing.Point(55, 111); + this.txtLastScanL.Location = new System.Drawing.Point(60, 127); this.txtLastScanL.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.txtLastScanL.Name = "txtLastScanL"; this.txtLastScanL.ReadOnly = true; - this.txtLastScanL.Size = new System.Drawing.Size(628, 60); + this.txtLastScanL.Size = new System.Drawing.Size(685, 68); this.txtLastScanL.TabIndex = 11; // // txtLastScanR @@ -157,11 +157,11 @@ this.txtLastScanR.BorderStyle = System.Windows.Forms.BorderStyle.None; this.txtLastScanR.Font = new System.Drawing.Font("宋体", 22.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtLastScanR.ForeColor = System.Drawing.Color.White; - this.txtLastScanR.Location = new System.Drawing.Point(715, 111); + this.txtLastScanR.Location = new System.Drawing.Point(780, 127); this.txtLastScanR.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.txtLastScanR.Name = "txtLastScanR"; this.txtLastScanR.ReadOnly = true; - this.txtLastScanR.Size = new System.Drawing.Size(628, 60); + this.txtLastScanR.Size = new System.Drawing.Size(685, 68); this.txtLastScanR.TabIndex = 10; // // txtProduceModel @@ -170,10 +170,10 @@ this.txtProduceModel.BackColor = System.Drawing.Color.Green; this.txtProduceModel.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.txtProduceModel.ForeColor = System.Drawing.Color.White; - this.txtProduceModel.Location = new System.Drawing.Point(1678, 41); + this.txtProduceModel.Location = new System.Drawing.Point(1831, 47); this.txtProduceModel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtProduceModel.Name = "txtProduceModel"; - this.txtProduceModel.Size = new System.Drawing.Size(104, 42); + this.txtProduceModel.Size = new System.Drawing.Size(118, 48); this.txtProduceModel.TabIndex = 9; this.txtProduceModel.Text = "左右"; // @@ -182,10 +182,10 @@ this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.label7.ForeColor = System.Drawing.Color.White; - this.label7.Location = new System.Drawing.Point(1396, 41); + this.label7.Location = new System.Drawing.Point(1523, 47); this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(276, 42); + this.label7.Size = new System.Drawing.Size(314, 48); this.label7.TabIndex = 8; this.label7.Text = "当前生产模式"; // @@ -195,10 +195,10 @@ this.txtConfig.BackColor = System.Drawing.Color.Green; this.txtConfig.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.txtConfig.ForeColor = System.Drawing.Color.White; - this.txtConfig.Location = new System.Drawing.Point(1266, 41); + this.txtConfig.Location = new System.Drawing.Point(1381, 47); this.txtConfig.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtConfig.Name = "txtConfig"; - this.txtConfig.Size = new System.Drawing.Size(104, 42); + this.txtConfig.Size = new System.Drawing.Size(118, 48); this.txtConfig.TabIndex = 7; this.txtConfig.Text = "高配"; // @@ -207,10 +207,10 @@ this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.label5.ForeColor = System.Drawing.Color.White; - this.label5.Location = new System.Drawing.Point(984, 41); + this.label5.Location = new System.Drawing.Point(1073, 47); this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(276, 42); + this.label5.Size = new System.Drawing.Size(314, 48); this.label5.TabIndex = 6; this.label5.Text = "当前配置状态"; // @@ -220,10 +220,10 @@ this.lbScanState.BackColor = System.Drawing.Color.Green; this.lbScanState.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.lbScanState.ForeColor = System.Drawing.Color.White; - this.lbScanState.Location = new System.Drawing.Point(642, 41); + this.lbScanState.Location = new System.Drawing.Point(700, 47); this.lbScanState.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbScanState.Name = "lbScanState"; - this.lbScanState.Size = new System.Drawing.Size(190, 42); + this.lbScanState.Size = new System.Drawing.Size(247, 55); this.lbScanState.TabIndex = 5; this.lbScanState.Text = "允许扫码"; // @@ -232,10 +232,10 @@ this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.label3.ForeColor = System.Drawing.Color.White; - this.label3.Location = new System.Drawing.Point(444, 41); + this.label3.Location = new System.Drawing.Point(484, 47); this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(190, 42); + this.label3.Size = new System.Drawing.Size(216, 48); this.label3.TabIndex = 4; this.label3.Text = "扫描状态"; // @@ -245,10 +245,10 @@ this.lbLinkState.BackColor = System.Drawing.Color.Green; this.lbLinkState.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold); this.lbLinkState.ForeColor = System.Drawing.Color.White; - this.lbLinkState.Location = new System.Drawing.Point(205, 41); + this.lbLinkState.Location = new System.Drawing.Point(224, 47); this.lbLinkState.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLinkState.Name = "lbLinkState"; - this.lbLinkState.Size = new System.Drawing.Size(190, 42); + this.lbLinkState.Size = new System.Drawing.Size(216, 48); this.lbLinkState.TabIndex = 3; this.lbLinkState.Text = "连接成功"; // @@ -257,10 +257,10 @@ this.btnOpenParamDialog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnOpenParamDialog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.btnOpenParamDialog.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnOpenParamDialog.Location = new System.Drawing.Point(2042, 109); + this.btnOpenParamDialog.Location = new System.Drawing.Point(2228, 125); this.btnOpenParamDialog.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.btnOpenParamDialog.Name = "btnOpenParamDialog"; - this.btnOpenParamDialog.Size = new System.Drawing.Size(282, 97); + this.btnOpenParamDialog.Size = new System.Drawing.Size(308, 111); this.btnOpenParamDialog.TabIndex = 2; this.btnOpenParamDialog.Text = "返回选中窗口"; this.btnOpenParamDialog.UseVisualStyleBackColor = false; @@ -271,10 +271,10 @@ this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.btnSearch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSearch.Location = new System.Drawing.Point(1753, 109); + this.btnSearch.Location = new System.Drawing.Point(1912, 125); this.btnSearch.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.btnSearch.Name = "btnSearch"; - this.btnSearch.Size = new System.Drawing.Size(282, 97); + this.btnSearch.Size = new System.Drawing.Size(308, 111); this.btnSearch.TabIndex = 1; this.btnSearch.Text = "查询明细"; this.btnSearch.UseVisualStyleBackColor = false; @@ -285,28 +285,28 @@ this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.ForeColor = System.Drawing.Color.White; - this.label1.Location = new System.Drawing.Point(15, 41); + this.label1.Location = new System.Drawing.Point(16, 47); this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(170, 42); + this.label1.Size = new System.Drawing.Size(193, 48); this.label1.TabIndex = 0; this.label1.Text = "PLC状态"; // // tableLayoutPanel2 // this.tableLayoutPanel2.ColumnCount = 4; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 82F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 89F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 82F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 89F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.Controls.Add(this.txtLeftScan, 1, 0); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel2.Location = new System.Drawing.Point(4, 373); + this.tableLayoutPanel2.Location = new System.Drawing.Point(4, 426); this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel2.Size = new System.Drawing.Size(2339, 134); + this.tableLayoutPanel2.Size = new System.Drawing.Size(2552, 154); this.tableLayoutPanel2.TabIndex = 1; // // txtLeftScan @@ -315,24 +315,24 @@ this.txtLeftScan.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.txtLeftScan.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtLeftScan.ForeColor = System.Drawing.Color.White; - this.txtLeftScan.Location = new System.Drawing.Point(86, 29); + this.txtLeftScan.Location = new System.Drawing.Point(93, 34); this.txtLeftScan.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.txtLeftScan.Name = "txtLeftScan"; - this.txtLeftScan.Size = new System.Drawing.Size(1079, 76); + this.txtLeftScan.Size = new System.Drawing.Size(1179, 86); this.txtLeftScan.TabIndex = 2; this.txtLeftScan.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtLeftScan_KeyDown); // // tableLayoutPanel3 // this.tableLayoutPanel3.ColumnCount = 9; - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 165F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 165F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 165F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 165F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.Controls.Add(this.txtLowQty, 7, 0); this.tableLayoutPanel3.Controls.Add(this.txtHighQty, 5, 0); @@ -344,12 +344,12 @@ this.tableLayoutPanel3.Controls.Add(this.label4, 4, 0); this.tableLayoutPanel3.Controls.Add(this.label8, 6, 0); this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel3.Location = new System.Drawing.Point(4, 597); + this.tableLayoutPanel3.Location = new System.Drawing.Point(4, 682); this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.RowCount = 1; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel3.Size = new System.Drawing.Size(2339, 134); + this.tableLayoutPanel3.Size = new System.Drawing.Size(2552, 154); this.tableLayoutPanel3.TabIndex = 3; // // txtLowQty @@ -360,10 +360,10 @@ this.txtLowQty.AutoSize = true; this.txtLowQty.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.txtLowQty.ForeColor = System.Drawing.Color.White; - this.txtLowQty.Location = new System.Drawing.Point(939, 0); + this.txtLowQty.Location = new System.Drawing.Point(1024, 0); this.txtLowQty.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtLowQty.Name = "txtLowQty"; - this.txtLowQty.Size = new System.Drawing.Size(157, 134); + this.txtLowQty.Size = new System.Drawing.Size(172, 154); this.txtLowQty.TabIndex = 9; this.txtLowQty.Text = "0"; this.txtLowQty.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -376,10 +376,10 @@ this.txtHighQty.AutoSize = true; this.txtHighQty.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.txtHighQty.ForeColor = System.Drawing.Color.White; - this.txtHighQty.Location = new System.Drawing.Point(664, 0); + this.txtHighQty.Location = new System.Drawing.Point(724, 0); this.txtHighQty.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtHighQty.Name = "txtHighQty"; - this.txtHighQty.Size = new System.Drawing.Size(157, 134); + this.txtHighQty.Size = new System.Drawing.Size(172, 154); this.txtHighQty.TabIndex = 8; this.txtHighQty.Text = "0"; this.txtHighQty.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -392,10 +392,10 @@ this.txtRightQty.AutoSize = true; this.txtRightQty.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.txtRightQty.ForeColor = System.Drawing.Color.White; - this.txtRightQty.Location = new System.Drawing.Point(389, 0); + this.txtRightQty.Location = new System.Drawing.Point(424, 0); this.txtRightQty.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtRightQty.Name = "txtRightQty"; - this.txtRightQty.Size = new System.Drawing.Size(157, 134); + this.txtRightQty.Size = new System.Drawing.Size(172, 154); this.txtRightQty.TabIndex = 7; this.txtRightQty.Text = "0"; this.txtRightQty.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -408,10 +408,10 @@ this.txtLeftQty.AutoSize = true; this.txtLeftQty.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.txtLeftQty.ForeColor = System.Drawing.Color.White; - this.txtLeftQty.Location = new System.Drawing.Point(114, 0); + this.txtLeftQty.Location = new System.Drawing.Point(124, 0); this.txtLeftQty.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtLeftQty.Name = "txtLeftQty"; - this.txtLeftQty.Size = new System.Drawing.Size(157, 134); + this.txtLeftQty.Size = new System.Drawing.Size(172, 154); this.txtLeftQty.TabIndex = 6; this.txtLeftQty.Text = "0"; this.txtLeftQty.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -428,7 +428,7 @@ this.label13.Location = new System.Drawing.Point(4, 0); this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(102, 134); + this.label13.Size = new System.Drawing.Size(112, 154); this.label13.TabIndex = 1; this.label13.Text = "左"; this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -442,10 +442,10 @@ this.label14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.label14.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.label14.ForeColor = System.Drawing.Color.White; - this.label14.Location = new System.Drawing.Point(279, 0); + this.label14.Location = new System.Drawing.Point(304, 0); this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(102, 134); + this.label14.Size = new System.Drawing.Size(112, 154); this.label14.TabIndex = 2; this.label14.Text = "右"; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -455,10 +455,10 @@ this.lbVer.Anchor = System.Windows.Forms.AnchorStyles.Right; this.lbVer.AutoSize = true; this.lbVer.ForeColor = System.Drawing.Color.White; - this.lbVer.Location = new System.Drawing.Point(2281, 56); + this.lbVer.Location = new System.Drawing.Point(2490, 65); this.lbVer.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbVer.Name = "lbVer"; - this.lbVer.Size = new System.Drawing.Size(54, 21); + this.lbVer.Size = new System.Drawing.Size(58, 24); this.lbVer.TabIndex = 10; this.lbVer.Text = " "; // @@ -471,10 +471,10 @@ this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.label4.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.label4.ForeColor = System.Drawing.Color.White; - this.label4.Location = new System.Drawing.Point(554, 0); + this.label4.Location = new System.Drawing.Point(604, 0); this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(102, 134); + this.label4.Size = new System.Drawing.Size(112, 154); this.label4.TabIndex = 11; this.label4.Text = "高"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -488,10 +488,10 @@ this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); this.label8.Font = new System.Drawing.Font("宋体", 25.8F, System.Drawing.FontStyle.Bold); this.label8.ForeColor = System.Drawing.Color.White; - this.label8.Location = new System.Drawing.Point(829, 0); + this.label8.Location = new System.Drawing.Point(904, 0); this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(102, 134); + this.label8.Size = new System.Drawing.Size(112, 154); this.label8.TabIndex = 12; this.label8.Text = "低"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -503,10 +503,10 @@ this.lbMsg.AutoSize = true; this.lbMsg.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbMsg.ForeColor = System.Drawing.Color.Red; - this.lbMsg.Location = new System.Drawing.Point(4, 1442); + this.lbMsg.Location = new System.Drawing.Point(4, 1648); this.lbMsg.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbMsg.Name = "lbMsg"; - this.lbMsg.Size = new System.Drawing.Size(201, 98); + this.lbMsg.Size = new System.Drawing.Size(230, 112); this.lbMsg.TabIndex = 5; this.lbMsg.Text = "异常信息 提示"; this.lbMsg.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -518,10 +518,10 @@ this.panel2.Controls.Add(this.lbBegin); this.panel2.Controls.Add(this.label2); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(4, 513); + this.panel2.Location = new System.Drawing.Point(4, 586); this.panel2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(2339, 78); + this.panel2.Size = new System.Drawing.Size(2552, 90); this.panel2.TabIndex = 6; // // lbEnd @@ -529,10 +529,10 @@ this.lbEnd.AutoSize = true; this.lbEnd.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbEnd.ForeColor = System.Drawing.Color.White; - this.lbEnd.Location = new System.Drawing.Point(678, 14); + this.lbEnd.Location = new System.Drawing.Point(740, 16); this.lbEnd.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbEnd.Name = "lbEnd"; - this.lbEnd.Size = new System.Drawing.Size(357, 33); + this.lbEnd.Size = new System.Drawing.Size(397, 37); this.lbEnd.TabIndex = 3; this.lbEnd.Text = "2024-06-01 23:59:59"; // @@ -541,10 +541,10 @@ this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label6.ForeColor = System.Drawing.Color.White; - this.label6.Location = new System.Drawing.Point(617, 14); + this.label6.Location = new System.Drawing.Point(673, 16); this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(33, 33); + this.label6.Size = new System.Drawing.Size(37, 37); this.label6.TabIndex = 2; this.label6.Text = "-"; // @@ -553,10 +553,10 @@ this.lbBegin.AutoSize = true; this.lbBegin.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbBegin.ForeColor = System.Drawing.Color.White; - this.lbBegin.Location = new System.Drawing.Point(253, 14); + this.lbBegin.Location = new System.Drawing.Point(276, 16); this.lbBegin.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbBegin.Name = "lbBegin"; - this.lbBegin.Size = new System.Drawing.Size(357, 33); + this.lbBegin.Size = new System.Drawing.Size(397, 37); this.lbBegin.TabIndex = 1; this.lbBegin.Text = "2024-06-01 00:00:00"; // @@ -565,10 +565,10 @@ this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.ForeColor = System.Drawing.Color.White; - this.label2.Location = new System.Drawing.Point(7, 14); + this.label2.Location = new System.Drawing.Point(8, 16); this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(237, 33); + this.label2.Size = new System.Drawing.Size(265, 37); this.label2.TabIndex = 0; this.label2.Text = "当前生产数据:"; // @@ -580,27 +580,27 @@ this.tableLayoutPanel4.Controls.Add(this.dgridScanRecords, 1, 0); this.tableLayoutPanel4.Controls.Add(this.txtAllQty, 0, 0); this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 737); + this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 842); this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.tableLayoutPanel4.Name = "tableLayoutPanel4"; this.tableLayoutPanel4.RowCount = 1; this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 703F)); - this.tableLayoutPanel4.Size = new System.Drawing.Size(2339, 702); + this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 802F)); + this.tableLayoutPanel4.Size = new System.Drawing.Size(2552, 803); this.tableLayoutPanel4.TabIndex = 7; // // dgridScanRecords // this.dgridScanRecords.AllowUserToAddRows = false; this.dgridScanRecords.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); - dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgridScanRecords.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); + dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle13.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgridScanRecords.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; this.dgridScanRecords.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgridScanRecords.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.塑件唯一码, @@ -610,21 +610,21 @@ this.生产时间}); this.dgridScanRecords.Dock = System.Windows.Forms.DockStyle.Fill; this.dgridScanRecords.EnableHeadersVisualStyles = false; - this.dgridScanRecords.Location = new System.Drawing.Point(1173, 3); + this.dgridScanRecords.Location = new System.Drawing.Point(1280, 3); this.dgridScanRecords.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.dgridScanRecords.Name = "dgridScanRecords"; this.dgridScanRecords.ReadOnly = true; - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); - dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgridScanRecords.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(46)))), ((int)(((byte)(64))))); + dataGridViewCellStyle14.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle14.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgridScanRecords.RowHeadersDefaultCellStyle = dataGridViewCellStyle14; this.dgridScanRecords.RowHeadersWidth = 51; this.dgridScanRecords.RowTemplate.Height = 27; - this.dgridScanRecords.Size = new System.Drawing.Size(1162, 696); + this.dgridScanRecords.Size = new System.Drawing.Size(1268, 797); this.dgridScanRecords.TabIndex = 4; this.dgridScanRecords.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgridScanRecords_CellContentClick); // @@ -688,7 +688,7 @@ this.txtAllQty.Location = new System.Drawing.Point(4, 0); this.txtAllQty.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.txtAllQty.Name = "txtAllQty"; - this.txtAllQty.Size = new System.Drawing.Size(1161, 702); + this.txtAllQty.Size = new System.Drawing.Size(1268, 803); this.txtAllQty.TabIndex = 5; this.txtAllQty.Text = "0"; this.txtAllQty.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -697,10 +697,10 @@ // this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(4, 143); + this.panel3.Location = new System.Drawing.Point(4, 163); this.panel3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(2339, 1); + this.panel3.Size = new System.Drawing.Size(2552, 1); this.panel3.TabIndex = 8; // // panel4 @@ -712,30 +712,43 @@ this.panel4.Location = new System.Drawing.Point(4, 3); this.panel4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(2339, 134); + this.panel4.Size = new System.Drawing.Size(2552, 154); this.panel4.TabIndex = 9; // + // lbCfg + // + this.lbCfg.AutoSize = true; + this.lbCfg.BackColor = System.Drawing.Color.Transparent; + this.lbCfg.ForeColor = System.Drawing.Color.White; + this.lbCfg.Location = new System.Drawing.Point(1, 7); + this.lbCfg.Name = "lbCfg"; + this.lbCfg.Size = new System.Drawing.Size(70, 24); + this.lbCfg.TabIndex = 23; + this.lbCfg.Text = " "; + // // lbTime // + this.lbTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lbTime.AutoSize = true; this.lbTime.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbTime.ForeColor = System.Drawing.Color.Yellow; - this.lbTime.Location = new System.Drawing.Point(1753, 53); + this.lbTime.Location = new System.Drawing.Point(1912, 61); this.lbTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTime.Name = "lbTime"; - this.lbTime.Size = new System.Drawing.Size(556, 56); + this.lbTime.Size = new System.Drawing.Size(636, 64); this.lbTime.TabIndex = 1; this.lbTime.Text = "2024-10-10 12:23:32"; + this.lbTime.DoubleClick += new System.EventHandler(this.lbTime_DoubleClick); // // label11 // this.label11.AutoSize = true; this.label11.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label11.ForeColor = System.Drawing.Color.Yellow; - this.label11.Location = new System.Drawing.Point(356, 27); + this.label11.Location = new System.Drawing.Point(388, 31); this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(715, 84); + this.label11.Size = new System.Drawing.Size(818, 97); this.label11.TabIndex = 0; this.label11.Text = "北汽模塑生产看板"; // @@ -751,22 +764,11 @@ this.dateTimer.Interval = 500; this.dateTimer.Tick += new System.EventHandler(this.dateTimer_Tick); // - // lbCfg - // - this.lbCfg.AutoSize = true; - this.lbCfg.BackColor = System.Drawing.Color.Transparent; - this.lbCfg.ForeColor = System.Drawing.Color.White; - this.lbCfg.Location = new System.Drawing.Point(1, 6); - this.lbCfg.Name = "lbCfg"; - this.lbCfg.Size = new System.Drawing.Size(65, 21); - this.lbCfg.TabIndex = 23; - this.lbCfg.Text = " "; - // // FrmDoorSill_214_3 // - this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F); + this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(2347, 1540); + this.ClientSize = new System.Drawing.Size(2560, 1760); this.Controls.Add(this.tableLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); diff --git a/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.cs b/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.cs index 2bbb5cb..3511352 100644 --- a/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.cs +++ b/PunchAssemble/PunchAndWeld/FrmDoorSill_214_3.cs @@ -154,7 +154,7 @@ namespace PunchAndWeld } catch (Exception ex) { - LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name); + LogHelper.WriteErrLogBase(ex.Message, MethodBase.GetCurrentMethod().Name); ShowLinkState(false); ShowHint("初始化设备时失败,请检查KepServer配置, 堆栈原因:" + ex.Message, true); } @@ -233,16 +233,16 @@ namespace PunchAndWeld Dictionary dict = new Dictionary(); //正式 - //dict.Add(0, "BBMPT.ZP214.Config"); - //dict.Add(1, "BBMPT.ZP214.LeftOrRight"); - //dict.Add(2, "BBMPT.ZP214.State"); - //dict.Add(3, "BBMPT.ZP214.Pulse"); + dict.Add(0, "BBMPT.ZP214.Config"); + dict.Add(1, "BBMPT.ZP214.LeftOrRight"); + dict.Add(2, "BBMPT.ZP214.State"); + dict.Add(3, "BBMPT.ZP214.Pulse"); //测试 - dict.Add(0, "BBMPT_TEST.Dev1.Config"); - dict.Add(1, "BBMPT_TEST.Dev1.LeftOrRight"); - dict.Add(2, "BBMPT_TEST.Dev1.State"); - dict.Add(3, "BBMPT_TEST.Dev1.Pulse"); + //dict.Add(0, "BBMPT_TEST.Dev1.Config"); + //dict.Add(1, "BBMPT_TEST.Dev1.LeftOrRight"); + //dict.Add(2, "BBMPT_TEST.Dev1.State"); + //dict.Add(3, "BBMPT_TEST.Dev1.Pulse"); return dict; } @@ -612,5 +612,21 @@ namespace PunchAndWeld { } + + private void lbTime_DoubleClick(object sender, EventArgs e) + { + if(lbScanState.Text == "允许扫码" || string.IsNullOrEmpty(lbScanState.Text)) + { + if(MessageBox.Show("确定关闭窗口?","关闭确认", MessageBoxButtons.YesNo) == DialogResult.Yes) + { + this.Close(); + } + } + else + { + MessageBox.Show("设备正在执行,无法关闭程序,请等待完成后再执行关闭操作."); + } + + } } }