Browse Source

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 8 years ago
parent
commit
df894c136d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      UAS-MES/FunctionCode/SystemSetting/SystemSetting_ScaleTest.cs

+ 10 - 0
UAS-MES/FunctionCode/SystemSetting/SystemSetting_ScaleTest.cs

@@ -39,6 +39,16 @@ namespace UAS_MES.SystemSetting
 
 
         private void StartTest_Click(object sender, EventArgs e)
         private void StartTest_Click(object sender, EventArgs e)
         {
         {
+            if (this.ComList.Text == "")
+            {
+                MessageBox.Show("端口号不可为空");
+                return;
+            }
+            if (this.BaudRate.Text == "")
+            {
+                MessageBox.Show("波特率不可为空");
+                return;
+            }
             thread = new Thread(GetSerialData);
             thread = new Thread(GetSerialData);
             try
             try
             {
             {