Bladeren bron

优化系统切换提示

cxs 1 jaar geleden
bovenliggende
commit
b8e51c7546
2 gewijzigde bestanden met toevoegingen van 36 en 21 verwijderingen
  1. 23 21
      OTSSysMgrApp/OTSSystemManagerForms.Designer.cs
  2. 13 0
      OTSSysMgrApp/OTSSystemManagerForms.cs

+ 23 - 21
OTSSysMgrApp/OTSSystemManagerForms.Designer.cs

@@ -45,10 +45,10 @@
             this.button2 = new System.Windows.Forms.Button();
             this.button1 = new System.Windows.Forms.Button();
             this.tabSysType = new System.Windows.Forms.TabPage();
+            this.btn_ok = new System.Windows.Forms.Button();
+            this.coB_CleannessType = new System.Windows.Forms.ComboBox();
             this.radioButton_CleannessA = new System.Windows.Forms.RadioButton();
             this.radioButton_IncA = new System.Windows.Forms.RadioButton();
-            this.coB_CleannessType = new System.Windows.Forms.ComboBox();
-            this.btn_ok = new System.Windows.Forms.Button();
             this.tabLanguage.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
             this.tabControl1.SuspendLayout();
@@ -261,6 +261,26 @@
             this.tabSysType.Text = "系统类型设置";
             this.tabSysType.UseVisualStyleBackColor = true;
             // 
+            // btn_ok
+            // 
+            this.btn_ok.Location = new System.Drawing.Point(253, 12);
+            this.btn_ok.Name = "btn_ok";
+            this.btn_ok.Size = new System.Drawing.Size(36, 78);
+            this.btn_ok.TabIndex = 3;
+            this.btn_ok.Text = "确定";
+            this.btn_ok.UseVisualStyleBackColor = true;
+            this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click);
+            // 
+            // coB_CleannessType
+            // 
+            this.coB_CleannessType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.coB_CleannessType.FormattingEnabled = true;
+            this.coB_CleannessType.Location = new System.Drawing.Point(112, 70);
+            this.coB_CleannessType.Name = "coB_CleannessType";
+            this.coB_CleannessType.Size = new System.Drawing.Size(121, 20);
+            this.coB_CleannessType.TabIndex = 2;
+            this.coB_CleannessType.SelectedIndexChanged += new System.EventHandler(this.coB_CleannessType_SelectedIndexChanged);
+            // 
             // radioButton_CleannessA
             // 
             this.radioButton_CleannessA.AutoSize = true;
@@ -282,25 +302,7 @@
             this.radioButton_IncA.TabStop = true;
             this.radioButton_IncA.Text = " OTS101";
             this.radioButton_IncA.UseVisualStyleBackColor = true;
-            // 
-            // coB_CleannessType
-            // 
-            this.coB_CleannessType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.coB_CleannessType.FormattingEnabled = true;
-            this.coB_CleannessType.Location = new System.Drawing.Point(112, 70);
-            this.coB_CleannessType.Name = "coB_CleannessType";
-            this.coB_CleannessType.Size = new System.Drawing.Size(121, 20);
-            this.coB_CleannessType.TabIndex = 2;
-            // 
-            // btn_ok
-            // 
-            this.btn_ok.Location = new System.Drawing.Point(463, 101);
-            this.btn_ok.Name = "btn_ok";
-            this.btn_ok.Size = new System.Drawing.Size(75, 24);
-            this.btn_ok.TabIndex = 3;
-            this.btn_ok.Text = "确定";
-            this.btn_ok.UseVisualStyleBackColor = true;
-            this.btn_ok.Click += new System.EventHandler(this.btn_ok_Click);
+            this.radioButton_IncA.CheckedChanged += new System.EventHandler(this.radioButton_IncA_CheckedChanged);
             // 
             // OTSSystemManagerForms
             // 

+ 13 - 0
OTSSysMgrApp/OTSSystemManagerForms.cs

@@ -210,6 +210,7 @@ namespace OTSSysMgrApp
             coB_CleannessType.Items.Add("BatteryCleannessA");
 
             ReadSysType();
+            btn_ok.Enabled = false;
         }
         /// <summary>
         /// 将所有参数保存
@@ -401,6 +402,7 @@ namespace OTSSysMgrApp
                 }
                 fileInfo.CopyTo(tagretFile +"\\"+ fileInfo.Name, true);
             }
+            MessageBox.Show("设定 成功!","提醒");
         }
 
         private void GetSEMAndEDSController()
@@ -643,5 +645,16 @@ namespace OTSSysMgrApp
         {
             CopyConfigBySysType();
         }
+
+        private void radioButton_IncA_CheckedChanged(object sender, EventArgs e)
+        {
+            btn_ok.Enabled = true;
+        }
+
+        private void coB_CleannessType_SelectedIndexChanged(object sender, EventArgs e)
+        {
+
+            btn_ok.Enabled = true;
+        }
     }
 }