Ejemplo 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();
         }
     }
 }
Ejemplo 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();
         }
     }
 }