Browse Source

添加显示操作状态信息

wb_han 5 years ago
parent
commit
c7113a8e66

+ 72 - 86
HOZProject/FormHOZMain.Designer.cs

@@ -56,6 +56,7 @@
             this.pbSave = new System.Windows.Forms.PictureBox();
             this.pbSave = new System.Windows.Forms.PictureBox();
             this.pbOpen = new System.Windows.Forms.PictureBox();
             this.pbOpen = new System.Windows.Forms.PictureBox();
             this.pbNew = new System.Windows.Forms.PictureBox();
             this.pbNew = new System.Windows.Forms.PictureBox();
+            this.lblStateMessage = new System.Windows.Forms.Label();
             this.plMain.SuspendLayout();
             this.plMain.SuspendLayout();
             this.plFill.SuspendLayout();
             this.plFill.SuspendLayout();
             this.groupBox1.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -86,10 +87,9 @@
             this.plMain.Controls.Add(this.plFill);
             this.plMain.Controls.Add(this.plFill);
             this.plMain.Controls.Add(this.plLeft);
             this.plMain.Controls.Add(this.plLeft);
             this.plMain.Controls.Add(this.plTop);
             this.plMain.Controls.Add(this.plTop);
-            this.plMain.Location = new System.Drawing.Point(16, 15);
-            this.plMain.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.plMain.Location = new System.Drawing.Point(12, 12);
             this.plMain.Name = "plMain";
             this.plMain.Name = "plMain";
-            this.plMain.Size = new System.Drawing.Size(1333, 930);
+            this.plMain.Size = new System.Drawing.Size(1000, 744);
             this.plMain.TabIndex = 1;
             this.plMain.TabIndex = 1;
             // 
             // 
             // plFill
             // plFill
@@ -103,10 +103,9 @@
             this.plFill.Controls.Add(this.listmsg);
             this.plFill.Controls.Add(this.listmsg);
             this.plFill.Controls.Add(this.pbImage);
             this.plFill.Controls.Add(this.pbImage);
             this.plFill.Controls.Add(this.plSEM);
             this.plFill.Controls.Add(this.plSEM);
-            this.plFill.Location = new System.Drawing.Point(141, 108);
-            this.plFill.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.plFill.Location = new System.Drawing.Point(106, 86);
             this.plFill.Name = "plFill";
             this.plFill.Name = "plFill";
-            this.plFill.Size = new System.Drawing.Size(1192, 822);
+            this.plFill.Size = new System.Drawing.Size(894, 658);
             this.plFill.TabIndex = 5;
             this.plFill.TabIndex = 5;
             // 
             // 
             // groupBox1
             // groupBox1
@@ -117,11 +116,9 @@
             this.groupBox1.Controls.Add(this.comboBox1);
             this.groupBox1.Controls.Add(this.comboBox1);
             this.groupBox1.Controls.Add(this.textBox2);
             this.groupBox1.Controls.Add(this.textBox2);
             this.groupBox1.ForeColor = System.Drawing.Color.White;
             this.groupBox1.ForeColor = System.Drawing.Color.White;
-            this.groupBox1.Location = new System.Drawing.Point(925, 2);
-            this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox1.Location = new System.Drawing.Point(694, 2);
             this.groupBox1.Name = "groupBox1";
             this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.groupBox1.Size = new System.Drawing.Size(267, 125);
+            this.groupBox1.Size = new System.Drawing.Size(200, 100);
             this.groupBox1.TabIndex = 26;
             this.groupBox1.TabIndex = 26;
             this.groupBox1.TabStop = false;
             this.groupBox1.TabStop = false;
             this.groupBox1.Text = "测试设置状态";
             this.groupBox1.Text = "测试设置状态";
@@ -129,20 +126,18 @@
             // 
             // 
             // textBox1
             // textBox1
             // 
             // 
-            this.textBox1.Location = new System.Drawing.Point(8, 25);
-            this.textBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.textBox1.Location = new System.Drawing.Point(6, 20);
             this.textBox1.Name = "textBox1";
             this.textBox1.Name = "textBox1";
-            this.textBox1.Size = new System.Drawing.Size(132, 25);
+            this.textBox1.Size = new System.Drawing.Size(100, 21);
             this.textBox1.TabIndex = 21;
             this.textBox1.TabIndex = 21;
             this.textBox1.Text = "切孔名称";
             this.textBox1.Text = "切孔名称";
             // 
             // 
             // button1
             // button1
             // 
             // 
             this.button1.ForeColor = System.Drawing.Color.Black;
             this.button1.ForeColor = System.Drawing.Color.Black;
-            this.button1.Location = new System.Drawing.Point(159, 25);
-            this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.button1.Location = new System.Drawing.Point(119, 20);
             this.button1.Name = "button1";
             this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(100, 92);
+            this.button1.Size = new System.Drawing.Size(75, 74);
             this.button1.TabIndex = 24;
             this.button1.TabIndex = 24;
             this.button1.Text = "测试";
             this.button1.Text = "测试";
             this.button1.UseVisualStyleBackColor = true;
             this.button1.UseVisualStyleBackColor = true;
@@ -154,18 +149,16 @@
             this.comboBox1.Items.AddRange(new object[] {
             this.comboBox1.Items.AddRange(new object[] {
             "True",
             "True",
             "False"});
             "False"});
-            this.comboBox1.Location = new System.Drawing.Point(8, 92);
-            this.comboBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.comboBox1.Location = new System.Drawing.Point(6, 74);
             this.comboBox1.Name = "comboBox1";
             this.comboBox1.Name = "comboBox1";
-            this.comboBox1.Size = new System.Drawing.Size(132, 23);
+            this.comboBox1.Size = new System.Drawing.Size(100, 20);
             this.comboBox1.TabIndex = 25;
             this.comboBox1.TabIndex = 25;
             // 
             // 
             // textBox2
             // textBox2
             // 
             // 
-            this.textBox2.Location = new System.Drawing.Point(8, 59);
-            this.textBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.textBox2.Location = new System.Drawing.Point(6, 47);
             this.textBox2.Name = "textBox2";
             this.textBox2.Name = "textBox2";
-            this.textBox2.Size = new System.Drawing.Size(132, 25);
+            this.textBox2.Size = new System.Drawing.Size(100, 21);
             this.textBox2.TabIndex = 22;
             this.textBox2.TabIndex = 22;
             this.textBox2.Text = "编号";
             this.textBox2.Text = "编号";
             // 
             // 
@@ -173,9 +166,8 @@
             // 
             // 
             this.plPrarInfo.BackColor = System.Drawing.Color.White;
             this.plPrarInfo.BackColor = System.Drawing.Color.White;
             this.plPrarInfo.Location = new System.Drawing.Point(0, 0);
             this.plPrarInfo.Location = new System.Drawing.Point(0, 0);
-            this.plPrarInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.plPrarInfo.Name = "plPrarInfo";
             this.plPrarInfo.Name = "plPrarInfo";
-            this.plPrarInfo.Size = new System.Drawing.Size(291, 125);
+            this.plPrarInfo.Size = new System.Drawing.Size(218, 100);
             this.plPrarInfo.TabIndex = 2;
             this.plPrarInfo.TabIndex = 2;
             this.plPrarInfo.Visible = false;
             this.plPrarInfo.Visible = false;
             // 
             // 
@@ -183,11 +175,11 @@
             // 
             // 
             this.listmsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.listmsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.listmsg.FormattingEnabled = true;
             this.listmsg.FormattingEnabled = true;
-            this.listmsg.ItemHeight = 15;
-            this.listmsg.Location = new System.Drawing.Point(556, 2);
-            this.listmsg.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.listmsg.ItemHeight = 12;
+            this.listmsg.Location = new System.Drawing.Point(417, 2);
+            this.listmsg.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
             this.listmsg.Name = "listmsg";
             this.listmsg.Name = "listmsg";
-            this.listmsg.Size = new System.Drawing.Size(635, 244);
+            this.listmsg.Size = new System.Drawing.Size(477, 196);
             this.listmsg.TabIndex = 18;
             this.listmsg.TabIndex = 18;
             this.listmsg.Visible = false;
             this.listmsg.Visible = false;
             // 
             // 
@@ -195,21 +187,21 @@
             // 
             // 
             this.pbImage.Dock = System.Windows.Forms.DockStyle.Fill;
             this.pbImage.Dock = System.Windows.Forms.DockStyle.Fill;
             this.pbImage.Location = new System.Drawing.Point(0, 0);
             this.pbImage.Location = new System.Drawing.Point(0, 0);
-            this.pbImage.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.pbImage.Name = "pbImage";
             this.pbImage.Name = "pbImage";
-            this.pbImage.Size = new System.Drawing.Size(1192, 710);
+            this.pbImage.Size = new System.Drawing.Size(894, 602);
             this.pbImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
             this.pbImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
             this.pbImage.TabIndex = 20;
             this.pbImage.TabIndex = 20;
             this.pbImage.TabStop = false;
             this.pbImage.TabStop = false;
             // 
             // 
             // plSEM
             // plSEM
             // 
             // 
+            this.plSEM.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.plSEM.Controls.Add(this.lblStateMessage);
             this.plSEM.Controls.Add(this.lblFlowContent);
             this.plSEM.Controls.Add(this.lblFlowContent);
             this.plSEM.Dock = System.Windows.Forms.DockStyle.Bottom;
             this.plSEM.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.plSEM.Location = new System.Drawing.Point(0, 710);
-            this.plSEM.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.plSEM.Location = new System.Drawing.Point(0, 602);
             this.plSEM.Name = "plSEM";
             this.plSEM.Name = "plSEM";
-            this.plSEM.Size = new System.Drawing.Size(1192, 112);
+            this.plSEM.Size = new System.Drawing.Size(894, 56);
             this.plSEM.TabIndex = 19;
             this.plSEM.TabIndex = 19;
             // 
             // 
             // lblFlowContent
             // lblFlowContent
@@ -217,10 +209,9 @@
             this.lblFlowContent.AutoSize = true;
             this.lblFlowContent.AutoSize = true;
             this.lblFlowContent.Font = new System.Drawing.Font("宋体", 10F);
             this.lblFlowContent.Font = new System.Drawing.Font("宋体", 10F);
             this.lblFlowContent.ForeColor = System.Drawing.Color.White;
             this.lblFlowContent.ForeColor = System.Drawing.Color.White;
-            this.lblFlowContent.Location = new System.Drawing.Point(31, 48);
-            this.lblFlowContent.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lblFlowContent.Location = new System.Drawing.Point(25, 21);
             this.lblFlowContent.Name = "lblFlowContent";
             this.lblFlowContent.Name = "lblFlowContent";
-            this.lblFlowContent.Size = new System.Drawing.Size(0, 17);
+            this.lblFlowContent.Size = new System.Drawing.Size(0, 14);
             this.lblFlowContent.TabIndex = 0;
             this.lblFlowContent.TabIndex = 0;
             // 
             // 
             // plLeft
             // plLeft
@@ -229,10 +220,9 @@
             this.plLeft.Controls.Add(this.label1);
             this.plLeft.Controls.Add(this.label1);
             this.plLeft.Controls.Add(this.plLeftContent);
             this.plLeft.Controls.Add(this.plLeftContent);
             this.plLeft.Dock = System.Windows.Forms.DockStyle.Left;
             this.plLeft.Dock = System.Windows.Forms.DockStyle.Left;
-            this.plLeft.Location = new System.Drawing.Point(0, 100);
-            this.plLeft.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.plLeft.Location = new System.Drawing.Point(0, 80);
             this.plLeft.Name = "plLeft";
             this.plLeft.Name = "plLeft";
-            this.plLeft.Size = new System.Drawing.Size(133, 830);
+            this.plLeft.Size = new System.Drawing.Size(100, 664);
             this.plLeft.TabIndex = 4;
             this.plLeft.TabIndex = 4;
             // 
             // 
             // label1
             // label1
@@ -241,10 +231,9 @@
             this.label1.BackColor = System.Drawing.Color.Transparent;
             this.label1.BackColor = System.Drawing.Color.Transparent;
             this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label1.ForeColor = System.Drawing.Color.Gainsboro;
             this.label1.ForeColor = System.Drawing.Color.Gainsboro;
-            this.label1.Location = new System.Drawing.Point(29, 4);
-            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label1.Location = new System.Drawing.Point(22, 3);
             this.label1.Name = "label1";
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(71, 15);
+            this.label1.Size = new System.Drawing.Size(57, 12);
             this.label1.TabIndex = 1;
             this.label1.TabIndex = 1;
             this.label1.Text = "切孔列表";
             this.label1.Text = "切孔列表";
             // 
             // 
@@ -254,10 +243,9 @@
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             | System.Windows.Forms.AnchorStyles.Right)));
             this.plLeftContent.AutoScroll = true;
             this.plLeftContent.AutoScroll = true;
-            this.plLeftContent.Location = new System.Drawing.Point(7, 24);
-            this.plLeftContent.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.plLeftContent.Location = new System.Drawing.Point(5, 19);
             this.plLeftContent.Name = "plLeftContent";
             this.plLeftContent.Name = "plLeftContent";
-            this.plLeftContent.Size = new System.Drawing.Size(120, 806);
+            this.plLeftContent.Size = new System.Drawing.Size(90, 645);
             this.plLeftContent.TabIndex = 0;
             this.plLeftContent.TabIndex = 0;
             // 
             // 
             // plTop
             // plTop
@@ -277,9 +265,8 @@
             this.plTop.Controls.Add(this.pbNew);
             this.plTop.Controls.Add(this.pbNew);
             this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
             this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
             this.plTop.Location = new System.Drawing.Point(0, 0);
             this.plTop.Location = new System.Drawing.Point(0, 0);
-            this.plTop.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.plTop.Name = "plTop";
             this.plTop.Name = "plTop";
-            this.plTop.Size = new System.Drawing.Size(1333, 100);
+            this.plTop.Size = new System.Drawing.Size(1000, 80);
             this.plTop.TabIndex = 3;
             this.plTop.TabIndex = 3;
             // 
             // 
             // pbStop
             // pbStop
@@ -287,10 +274,10 @@
             this.pbStop.BackgroundImage = global::HOZProject.Properties.Resources.Stop;
             this.pbStop.BackgroundImage = global::HOZProject.Properties.Resources.Stop;
             this.pbStop.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbStop.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbStop.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbStop.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbStop.Location = new System.Drawing.Point(596, 5);
-            this.pbStop.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbStop.Enabled = false;
+            this.pbStop.Location = new System.Drawing.Point(447, 4);
             this.pbStop.Name = "pbStop";
             this.pbStop.Name = "pbStop";
-            this.pbStop.Size = new System.Drawing.Size(91, 89);
+            this.pbStop.Size = new System.Drawing.Size(68, 71);
             this.pbStop.TabIndex = 8;
             this.pbStop.TabIndex = 8;
             this.pbStop.TabStop = false;
             this.pbStop.TabStop = false;
             this.pbStop.Click += new System.EventHandler(this.pbStop_Click);
             this.pbStop.Click += new System.EventHandler(this.pbStop_Click);
@@ -302,10 +289,9 @@
             this.pbPause.BackgroundImage = global::HOZProject.Properties.Resources.Pause;
             this.pbPause.BackgroundImage = global::HOZProject.Properties.Resources.Pause;
             this.pbPause.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbPause.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbPause.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbPause.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbPause.Location = new System.Drawing.Point(695, 5);
-            this.pbPause.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbPause.Location = new System.Drawing.Point(521, 4);
             this.pbPause.Name = "pbPause";
             this.pbPause.Name = "pbPause";
-            this.pbPause.Size = new System.Drawing.Size(91, 89);
+            this.pbPause.Size = new System.Drawing.Size(68, 71);
             this.pbPause.TabIndex = 8;
             this.pbPause.TabIndex = 8;
             this.pbPause.TabStop = false;
             this.pbPause.TabStop = false;
             this.pbPause.Visible = false;
             this.pbPause.Visible = false;
@@ -315,10 +301,9 @@
             this.pbStart.BackgroundImage = global::HOZProject.Properties.Resources.Start;
             this.pbStart.BackgroundImage = global::HOZProject.Properties.Resources.Start;
             this.pbStart.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbStart.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbStart.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbStart.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbStart.Location = new System.Drawing.Point(497, 5);
-            this.pbStart.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbStart.Location = new System.Drawing.Point(373, 4);
             this.pbStart.Name = "pbStart";
             this.pbStart.Name = "pbStart";
-            this.pbStart.Size = new System.Drawing.Size(91, 89);
+            this.pbStart.Size = new System.Drawing.Size(68, 71);
             this.pbStart.TabIndex = 8;
             this.pbStart.TabIndex = 8;
             this.pbStart.TabStop = false;
             this.pbStart.TabStop = false;
             this.pbStart.Click += new System.EventHandler(this.pbStart_Click);
             this.pbStart.Click += new System.EventHandler(this.pbStart_Click);
@@ -331,10 +316,9 @@
             this.pbMax.BackgroundImage = global::HOZProject.Properties.Resources.Max_Gray;
             this.pbMax.BackgroundImage = global::HOZProject.Properties.Resources.Max_Gray;
             this.pbMax.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbMax.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbMax.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbMax.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbMax.Location = new System.Drawing.Point(1247, 0);
-            this.pbMax.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbMax.Location = new System.Drawing.Point(935, 0);
             this.pbMax.Name = "pbMax";
             this.pbMax.Name = "pbMax";
-            this.pbMax.Size = new System.Drawing.Size(37, 39);
+            this.pbMax.Size = new System.Drawing.Size(28, 31);
             this.pbMax.TabIndex = 7;
             this.pbMax.TabIndex = 7;
             this.pbMax.TabStop = false;
             this.pbMax.TabStop = false;
             this.pbMax.Click += new System.EventHandler(this.pbMax_Click);
             this.pbMax.Click += new System.EventHandler(this.pbMax_Click);
@@ -347,10 +331,9 @@
             this.pbMin.BackgroundImage = global::HOZProject.Properties.Resources.Min_Gray;
             this.pbMin.BackgroundImage = global::HOZProject.Properties.Resources.Min_Gray;
             this.pbMin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbMin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbMin.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbMin.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbMin.Location = new System.Drawing.Point(1201, 0);
-            this.pbMin.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbMin.Location = new System.Drawing.Point(901, 0);
             this.pbMin.Name = "pbMin";
             this.pbMin.Name = "pbMin";
-            this.pbMin.Size = new System.Drawing.Size(37, 39);
+            this.pbMin.Size = new System.Drawing.Size(28, 31);
             this.pbMin.TabIndex = 7;
             this.pbMin.TabIndex = 7;
             this.pbMin.TabStop = false;
             this.pbMin.TabStop = false;
             this.pbMin.Click += new System.EventHandler(this.pbMin_Click);
             this.pbMin.Click += new System.EventHandler(this.pbMin_Click);
@@ -363,10 +346,9 @@
             this.pbClose.BackgroundImage = global::HOZProject.Properties.Resources.exit_Gray;
             this.pbClose.BackgroundImage = global::HOZProject.Properties.Resources.exit_Gray;
             this.pbClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbClose.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbClose.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbClose.Location = new System.Drawing.Point(1292, 0);
-            this.pbClose.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbClose.Location = new System.Drawing.Point(969, 0);
             this.pbClose.Name = "pbClose";
             this.pbClose.Name = "pbClose";
-            this.pbClose.Size = new System.Drawing.Size(37, 39);
+            this.pbClose.Size = new System.Drawing.Size(28, 31);
             this.pbClose.TabIndex = 7;
             this.pbClose.TabIndex = 7;
             this.pbClose.TabStop = false;
             this.pbClose.TabStop = false;
             this.pbClose.Click += new System.EventHandler(this.pbClose_Click);
             this.pbClose.Click += new System.EventHandler(this.pbClose_Click);
@@ -378,10 +360,9 @@
             this.pbImportTemplateFile.BackgroundImage = global::HOZProject.Properties.Resources.ImportConfigFile;
             this.pbImportTemplateFile.BackgroundImage = global::HOZProject.Properties.Resources.ImportConfigFile;
             this.pbImportTemplateFile.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbImportTemplateFile.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbImportTemplateFile.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbImportTemplateFile.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbImportTemplateFile.Location = new System.Drawing.Point(299, 5);
-            this.pbImportTemplateFile.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbImportTemplateFile.Location = new System.Drawing.Point(224, 4);
             this.pbImportTemplateFile.Name = "pbImportTemplateFile";
             this.pbImportTemplateFile.Name = "pbImportTemplateFile";
-            this.pbImportTemplateFile.Size = new System.Drawing.Size(91, 89);
+            this.pbImportTemplateFile.Size = new System.Drawing.Size(68, 71);
             this.pbImportTemplateFile.TabIndex = 6;
             this.pbImportTemplateFile.TabIndex = 6;
             this.pbImportTemplateFile.TabStop = false;
             this.pbImportTemplateFile.TabStop = false;
             this.pbImportTemplateFile.Click += new System.EventHandler(this.pbImportTemplateFile_Click);
             this.pbImportTemplateFile.Click += new System.EventHandler(this.pbImportTemplateFile_Click);
@@ -391,10 +372,9 @@
             this.pbLog.BackgroundImage = global::HOZProject.Properties.Resources.Log;
             this.pbLog.BackgroundImage = global::HOZProject.Properties.Resources.Log;
             this.pbLog.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbLog.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbLog.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbLog.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbLog.Location = new System.Drawing.Point(396, 5);
-            this.pbLog.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbLog.Location = new System.Drawing.Point(297, 4);
             this.pbLog.Name = "pbLog";
             this.pbLog.Name = "pbLog";
-            this.pbLog.Size = new System.Drawing.Size(91, 89);
+            this.pbLog.Size = new System.Drawing.Size(68, 71);
             this.pbLog.TabIndex = 6;
             this.pbLog.TabIndex = 6;
             this.pbLog.TabStop = false;
             this.pbLog.TabStop = false;
             this.pbLog.Click += new System.EventHandler(this.pbLog_Click);
             this.pbLog.Click += new System.EventHandler(this.pbLog_Click);
@@ -404,10 +384,9 @@
             this.pbInit.BackgroundImage = global::HOZProject.Properties.Resources.init;
             this.pbInit.BackgroundImage = global::HOZProject.Properties.Resources.init;
             this.pbInit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbInit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbInit.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbInit.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbInit.Location = new System.Drawing.Point(201, 5);
-            this.pbInit.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbInit.Location = new System.Drawing.Point(151, 4);
             this.pbInit.Name = "pbInit";
             this.pbInit.Name = "pbInit";
-            this.pbInit.Size = new System.Drawing.Size(91, 89);
+            this.pbInit.Size = new System.Drawing.Size(68, 71);
             this.pbInit.TabIndex = 5;
             this.pbInit.TabIndex = 5;
             this.pbInit.TabStop = false;
             this.pbInit.TabStop = false;
             this.pbInit.Click += new System.EventHandler(this.pbInit_Click);
             this.pbInit.Click += new System.EventHandler(this.pbInit_Click);
@@ -417,10 +396,9 @@
             this.pbSave.BackgroundImage = global::HOZProject.Properties.Resources.save;
             this.pbSave.BackgroundImage = global::HOZProject.Properties.Resources.save;
             this.pbSave.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbSave.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbSave.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbSave.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbSave.Location = new System.Drawing.Point(104, 5);
-            this.pbSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbSave.Location = new System.Drawing.Point(78, 4);
             this.pbSave.Name = "pbSave";
             this.pbSave.Name = "pbSave";
-            this.pbSave.Size = new System.Drawing.Size(91, 89);
+            this.pbSave.Size = new System.Drawing.Size(68, 71);
             this.pbSave.TabIndex = 4;
             this.pbSave.TabIndex = 4;
             this.pbSave.TabStop = false;
             this.pbSave.TabStop = false;
             this.pbSave.Click += new System.EventHandler(this.pbSave_Click);
             this.pbSave.Click += new System.EventHandler(this.pbSave_Click);
@@ -430,10 +408,9 @@
             this.pbOpen.BackgroundImage = global::HOZProject.Properties.Resources.open;
             this.pbOpen.BackgroundImage = global::HOZProject.Properties.Resources.open;
             this.pbOpen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbOpen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbOpen.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbOpen.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbOpen.Location = new System.Drawing.Point(7, 5);
-            this.pbOpen.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbOpen.Location = new System.Drawing.Point(5, 4);
             this.pbOpen.Name = "pbOpen";
             this.pbOpen.Name = "pbOpen";
-            this.pbOpen.Size = new System.Drawing.Size(91, 89);
+            this.pbOpen.Size = new System.Drawing.Size(68, 71);
             this.pbOpen.TabIndex = 3;
             this.pbOpen.TabIndex = 3;
             this.pbOpen.TabStop = false;
             this.pbOpen.TabStop = false;
             this.pbOpen.Click += new System.EventHandler(this.pbOpen_Click);
             this.pbOpen.Click += new System.EventHandler(this.pbOpen_Click);
@@ -443,25 +420,33 @@
             this.pbNew.BackgroundImage = global::HOZProject.Properties.Resources.New;
             this.pbNew.BackgroundImage = global::HOZProject.Properties.Resources.New;
             this.pbNew.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbNew.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.pbNew.Cursor = System.Windows.Forms.Cursors.Hand;
             this.pbNew.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.pbNew.Location = new System.Drawing.Point(7, 5);
-            this.pbNew.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.pbNew.Location = new System.Drawing.Point(5, 4);
             this.pbNew.Name = "pbNew";
             this.pbNew.Name = "pbNew";
-            this.pbNew.Size = new System.Drawing.Size(91, 89);
+            this.pbNew.Size = new System.Drawing.Size(68, 71);
             this.pbNew.TabIndex = 3;
             this.pbNew.TabIndex = 3;
             this.pbNew.TabStop = false;
             this.pbNew.TabStop = false;
             this.pbNew.Visible = false;
             this.pbNew.Visible = false;
             this.pbNew.Click += new System.EventHandler(this.pbNew_Click);
             this.pbNew.Click += new System.EventHandler(this.pbNew_Click);
             // 
             // 
+            // lblStateMessage
+            // 
+            this.lblStateMessage.AutoSize = true;
+            this.lblStateMessage.Font = new System.Drawing.Font("宋体", 10F);
+            this.lblStateMessage.ForeColor = System.Drawing.Color.White;
+            this.lblStateMessage.Location = new System.Drawing.Point(777, 21);
+            this.lblStateMessage.Name = "lblStateMessage";
+            this.lblStateMessage.Size = new System.Drawing.Size(0, 14);
+            this.lblStateMessage.TabIndex = 1;
+            // 
             // FormHOZMain
             // FormHOZMain
             // 
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.SystemColors.WindowFrame;
             this.BackColor = System.Drawing.SystemColors.WindowFrame;
-            this.ClientSize = new System.Drawing.Size(1365, 960);
+            this.ClientSize = new System.Drawing.Size(1024, 768);
             this.ControlBox = false;
             this.ControlBox = false;
             this.Controls.Add(this.plMain);
             this.Controls.Add(this.plMain);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
-            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.Name = "FormHOZMain";
             this.Name = "FormHOZMain";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.Text = "FormHOZMain";
             this.Text = "FormHOZMain";
@@ -522,5 +507,6 @@
         private System.Windows.Forms.GroupBox groupBox1;
         private System.Windows.Forms.GroupBox groupBox1;
         public System.Windows.Forms.PictureBox pbImage;
         public System.Windows.Forms.PictureBox pbImage;
         public System.Windows.Forms.Label lblFlowContent;
         public System.Windows.Forms.Label lblFlowContent;
+        public System.Windows.Forms.Label lblStateMessage;
     }
     }
 }
 }

+ 36 - 8
HOZProject/FormHOZMain.cs

@@ -54,6 +54,9 @@ namespace HOZProject
         //流程控制
         //流程控制
         public int m_MeasureType = (int)MeasureMsgManage.measureType.FIB;
         public int m_MeasureType = (int)MeasureMsgManage.measureType.FIB;
 
 
+        //是否关闭窗体标识
+        public bool IsClose = false;
+
         Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
         Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
         #endregion
         #endregion
 
 
@@ -94,6 +97,7 @@ namespace HOZProject
             SetWinControlMeasureState(false);
             SetWinControlMeasureState(false);
             //自动测量的全过程
             //自动测量的全过程
             m_Ms.DoMeasure();
             m_Ms.DoMeasure();
+
             //定位
             //定位
             //切割
             //切割
             //分析位置
             //分析位置
@@ -127,7 +131,7 @@ namespace HOZProject
         void CompletedWork(object sender, RunWorkerCompletedEventArgs e)
         void CompletedWork(object sender, RunWorkerCompletedEventArgs e)
         {
         {
             //设置控件操作
             //设置控件操作
-            MessageBox.Show("线程已完成!");
+            MessageBox.Show("线程已完成!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             SetWinControlMeasureState(true);
             SetWinControlMeasureState(true);
         }
         }
         #endregion
         #endregion
@@ -215,6 +219,7 @@ namespace HOZProject
             pbInit.Enabled = cState;
             pbInit.Enabled = cState;
             pbImportTemplateFile.Enabled = cState;
             pbImportTemplateFile.Enabled = cState;
             pbLog.Enabled = cState;
             pbLog.Enabled = cState;
+            pbStop.Enabled = !cState;
         }
         }
         #endregion
         #endregion
         
         
@@ -271,7 +276,24 @@ namespace HOZProject
 
 
         private void pbClose_Click(object sender, EventArgs e)
         private void pbClose_Click(object sender, EventArgs e)
         {
         {
-            this.Close();
+            if (m_Ms != null)
+            {
+                if (!m_Ms.key_stop)
+                {
+                    if (MessageBox.Show("当前测量正在运行,是否关闭此窗体?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+                    {
+                        //线程停止变量
+                        m_Ms.key_stop = true;
+                        IsClose = true;
+                        lblStateMessage.Text = "正在关闭窗体...请等待";
+                        return;
+                    }
+                }
+            }
+            if (MessageBox.Show("是否关闭此窗体?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+            {
+                this.Close();
+            }
         }
         }
 
 
         private void pbMin_Click(object sender, EventArgs e)
         private void pbMin_Click(object sender, EventArgs e)
@@ -318,7 +340,7 @@ namespace HOZProject
         {
         {
             if (m_MeasureFile == null)
             if (m_MeasureFile == null)
             {
             {
-                MessageBox.Show("请新建一个测量文件");
+                MessageBox.Show("请新建一个测量文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             }
             else
             else
             {
             {
@@ -581,7 +603,7 @@ namespace HOZProject
         {
         {
             if (m_MeasureFile == null)
             if (m_MeasureFile == null)
             {
             {
-                MessageBox.Show("请新建一个测量文件");
+                MessageBox.Show("请新建一个测量文件", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 //listmsg.Items.Clear();
                 //listmsg.Items.Clear();
             }
             }
             else
             else
@@ -590,22 +612,28 @@ namespace HOZProject
                 {
                 {
                     if (m_BackgroundWorker.IsBusy)
                     if (m_BackgroundWorker.IsBusy)
                     {
                     {
-                        MessageBox.Show("线程已经运行");
+                        MessageBox.Show("线程已经运行!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
                         return;
                         return;
                     }
                     }
                     m_BackgroundWorker.RunWorkerAsync(this);
                     m_BackgroundWorker.RunWorkerAsync(this);
                 }
                 }
                 else
                 else
                 {
                 {
-                    MessageBox.Show("请保存当前测量文件");
+                    MessageBox.Show("请保存当前测量文件", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 }
                 }
             }
             }
         }
         }
 
 
         private void pbStop_Click(object sender, EventArgs e)
         private void pbStop_Click(object sender, EventArgs e)
         {
         {
-            //线程停止变量
-            m_Ms.key_stop = true;
+            if (m_Ms != null)
+            { 
+                if (MessageBox.Show("是否停止当前测量?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)== DialogResult.Yes)
+                {
+                    //线程停止变量
+                    m_Ms.key_stop = true;
+                }
+            }
         }
         }
         #endregion
         #endregion
 
 

+ 40 - 10
HOZProject/MeasureMsgDispose/MeasureMsgManage.cs

@@ -33,26 +33,56 @@ namespace HOZProject
                     if (formHOZ.m_BackgroundWorker.IsBusy)
                     if (formHOZ.m_BackgroundWorker.IsBusy)
                     {
                     {
                         formHOZ.m_BackgroundWorker.CancelAsync();
                         formHOZ.m_BackgroundWorker.CancelAsync();
+                        //是否关闭窗体的标识
+                        if (formHOZ.IsClose)
+                        {
+                            formHOZ.Close();
+                        }
                     }
                     }
                     break;
                     break;
             }
             }
             #endregion
             #endregion
+            //是否当前编号是流程中有数据的节点
             if (IsCutHolePhotoInfo(formHOZ, args))
             if (IsCutHolePhotoInfo(formHOZ, args))
             {
             {
-                //设置图像
-                FileStream fileStream = new FileStream(args.Picture_Information.Picture_FullPath, FileMode.Open, FileAccess.Read);
-                formHOZ.pbImage.Image = Image.FromStream(fileStream);
-                fileStream.Close();
-                fileStream.Dispose();
-                //流程内容
-                string semParaContent = "电压:" + args.Picture_Information.Work_Voltage;
-                semParaContent += "  放大倍数:" + args.Picture_Information.Magnification;
-                semParaContent += "  工作距离:" + args.Picture_Information.Work_Distance;
-                formHOZ.lblFlowContent.Text = semParaContent;
+                if (!args.Picture_Information.Picture_FullPath.Equals(""))
+                {
+                    //显示状态信息
+                    ShowStateMessage(formHOZ, args);
+                    //设置图像
+                    FileStream fileStream = new FileStream(args.Picture_Information.Picture_FullPath, FileMode.Open, FileAccess.Read);
+                    formHOZ.pbImage.Image = Image.FromStream(fileStream);
+                    fileStream.Close();
+                    fileStream.Dispose();
+                    //流程内容
+                    string semParaContent = "电压:" + args.Picture_Information.Work_Voltage;
+                    semParaContent += "  放大倍数:" + args.Picture_Information.Magnification;
+                    semParaContent += "  工作距离:" + args.Picture_Information.Work_Distance;
+                    formHOZ.lblFlowContent.Text = semParaContent;
+                }
             }
             }
             //修改切孔中流程状态
             //修改切孔中流程状态
             ChageCutHoleFlowNodeState(formHOZ, args);
             ChageCutHoleFlowNodeState(formHOZ, args);
         }
         }
+
+        /// <summary>
+        /// 显示状态信息
+        /// </summary>
+        /// <param name="formHOZ"></param>
+        /// <param name="args"></param>
+        private static void ShowStateMessage(FormHOZMain formHOZ,ThreadStatusEventArgs args)
+        {
+            //显示状态信息
+            if (args.Step_Code == "1-2")
+            {
+                formHOZ.lblStateMessage.Text = "正在对焦中...请等待";
+            }
+            else
+            {
+                formHOZ.lblStateMessage.Text = "";
+            }
+        }
+
         #region 显示切孔流程中拍照信息
         #region 显示切孔流程中拍照信息
         /// <summary>
         /// <summary>
         /// 是否当前编号是流程中有数据的节点
         /// 是否当前编号是流程中有数据的节点

+ 5 - 5
HOZProject/UserControls/UControl_Init.cs

@@ -60,13 +60,13 @@ namespace HOZProject
         {
         {
             if (FormHOZMainObject.m_MeasureFile == null)
             if (FormHOZMainObject.m_MeasureFile == null)
             {
             {
-                MessageBox.Show("请新建一个测量文件");
+                MessageBox.Show("请新建一个测量文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             }
             else
             else
             {
             {
                 if (!FormHOZMainObject.m_MeasureFile.GetCutHolesFromFile(""))
                 if (!FormHOZMainObject.m_MeasureFile.GetCutHolesFromFile(""))
                 {
                 {
-                    MessageBox.Show("导入切孔失败");
+                    MessageBox.Show("导入切孔失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 }
                 }
                 else
                 else
                 {
                 {
@@ -97,13 +97,13 @@ namespace HOZProject
         {
         {
             if (FormHOZMainObject.m_MeasureFile == null)
             if (FormHOZMainObject.m_MeasureFile == null)
             {
             {
-                MessageBox.Show("请新建一个测量文件");
+                MessageBox.Show("请新建一个测量文件!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             }
             else
             else
             {
             {
                 if (!FormHOZMainObject.m_MeasureFile.GetCutHolesFromFile(""))
                 if (!FormHOZMainObject.m_MeasureFile.GetCutHolesFromFile(""))
                 {
                 {
-                    MessageBox.Show("导入切孔失败");
+                    MessageBox.Show("导入切孔失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 }
                 }
                 else
                 else
                 {
                 {
@@ -623,7 +623,7 @@ namespace HOZProject
         {
         {
             if (EditConfig())
             if (EditConfig())
             {
             {
-                MessageBox.Show("保存成功!", "提示");
+                MessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             }
         }
         }
         #endregion
         #endregion