Esempio n. 1
0
 private void buttonPortSetting_Click(object sender, EventArgs e)
 {
     using (ComportSettingDialog csd = new ComportSettingDialog())
     {
         csd.Owner          = this;
         csd.PortDescString = testEnv.descPort;
         if (csd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             testEnv.descPort = csd.PortDescString;
             SyncSerialPort();
         }
     }
 }
Esempio n. 2
0
 private void buttonPortSetting_Click(object sender, EventArgs e)
 {
     using (ComportSettingDialog csd = new ComportSettingDialog())
     {
         csd.Owner = this;
         csd.PortDescString = testEnv.descPort;
         if (csd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             testEnv.descPort = csd.PortDescString;
             SyncSerialPort();
         }
     }
 }