Browse Source

修改停止检测按钮enable

章政 8 years ago
parent
commit
30df4e68ab
2 changed files with 3 additions and 0 deletions
  1. 1 0
      UAS_XmlAnalysor/Form1.Designer.cs
  2. 2 0
      UAS_XmlAnalysor/Form1.cs

+ 1 - 0
UAS_XmlAnalysor/Form1.Designer.cs

@@ -68,6 +68,7 @@
             // 
             // StopWatch
             // 
+            this.StopWatch.Enabled = false;
             this.StopWatch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.StopWatch.Location = new System.Drawing.Point(249, 256);
             this.StopWatch.Margin = new System.Windows.Forms.Padding(2);

+ 2 - 0
UAS_XmlAnalysor/Form1.cs

@@ -102,6 +102,7 @@ namespace UAS_XmlAnalysor
             StartWatch.Enabled = false;
             ChooseFolder.Enabled = false;
             ChooseBackUpFolder.Enabled = false;
+            StopWatch.Enabled = true;
             SetAutoRun();
             OperateResult.AppendText("开始执行监控\n");
         }
@@ -208,6 +209,7 @@ namespace UAS_XmlAnalysor
             StartWatch.Enabled = true;
             ChooseFolder.Enabled = true;
             ChooseBackUpFolder.Enabled = true;
+            StopWatch.Enabled = false;
             OperateResult.AppendText("停止执行监控\n");
         }