Explorar o código

2020-10-28-17.34

zhangjiaxin %!s(int64=4) %!d(string=hai) anos
pai
achega
9f549b11d2

+ 4 - 2
HOZProject/UserControls/UControl_Init.Designer.cs

@@ -683,9 +683,10 @@
             this.label3.Location = new System.Drawing.Point(299, 393);
             this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(112, 14);
+            this.label3.Size = new System.Drawing.Size(105, 14);
             this.label3.TabIndex = 116;
-            this.label3.Text = "移动Z轴大小(mm)";
+            this.label3.Text = "移动Z轴大小/mm";
+            this.label3.Visible = false;
             // 
             // cbbYDZZDX
             // 
@@ -693,6 +694,7 @@
             this.cbbYDZZDX.Name = "cbbYDZZDX";
             this.cbbYDZZDX.Size = new System.Drawing.Size(131, 23);
             this.cbbYDZZDX.TabIndex = 117;
+            this.cbbYDZZDX.Visible = false;
             this.cbbYDZZDX.TextChanged += new System.EventHandler(this.cbbYDZZDX_TextChanged);
             this.cbbYDZZDX.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.cbbYDZZDX_KeyPress);
             // 

+ 28 - 28
HOZProject/UserControls/UControl_Init.cs

@@ -672,24 +672,24 @@ namespace HOZProject
             cbbWPZD.Text = config.AppSettings.Settings["Photograph_Voltage"].Value;
             cbbWFIB.Text = config.AppSettings.Settings["FIB_Magnification"].Value;
             string Correction_Angle = config.AppSettings.Settings["Correction_Angle"].Value;
-            if (Convert.ToBoolean(config.AppSettings.Settings["Is_Title"].Value))
-            {
-                cbbYDZZDX.Visible = true;
-                label3.Visible = true;
-            }
-            else
-            {
-                cbbYDZZDX.Visible = false;
-                label3.Visible = false;
-            }
-            if (Correction_Angle == "36")
-            {
-                cbbWXZ.SelectedIndex = 0;
-            }
-            else
-            {
-                cbbWXZ.SelectedIndex = 1;
-            }
+            //if (Convert.ToBoolean(config.AppSettings.Settings["Is_Title"].Value))
+            //{
+            //    cbbYDZZDX.Visible = true;
+            //    label3.Visible = true;
+            //}
+            //else
+            //{
+            //    cbbYDZZDX.Visible = false;
+            //    label3.Visible = false;
+            //}
+            //if (Correction_Angle == "36")
+            //{
+            //    cbbWXZ.SelectedIndex = 0;
+            //}
+            //else
+            //{
+            //    cbbWXZ.SelectedIndex = 1;
+            //}
             cbbWYP.Text = config.AppSettings.Settings["SampleName"].Value;
             cbbWCS.Text = config.AppSettings.Settings["Firms"].Value;
         }
@@ -1023,16 +1023,16 @@ namespace HOZProject
 
         private void chkWqxkc_CheckedChanged(object sender, EventArgs e)
         {
-            if (chkWqxkc.Checked) 
-            {
-                label3.Visible = true;
-                cbbYDZZDX.Visible = true;
-            }
-            else
-            {
-                label3.Visible = false;
-                cbbYDZZDX.Visible = false;
-            }
+            //if (chkWqxkc.Checked) 
+            //{
+            //    label3.Visible = true;
+            //    cbbYDZZDX.Visible = true;
+            //}
+            //else
+            //{
+            //    label3.Visible = false;
+            //    cbbYDZZDX.Visible = false;
+            //}
         }