Esempio n. 1
0
        private void serialPortTsMenuItem_Click(object sender, EventArgs e)
        {
            FrmSelectSerialPort SelectSerialPort = new FrmSelectSerialPort();

            if (DialogResult.OK == SelectSerialPort.ShowDialog())
            {
                if (SelectSerialPort.COMx != null && SelectSerialPort.COMx != String.Empty)
                {
                    Properties.Settings.Default.COMx = SelectSerialPort.COMx;
                    Properties.Settings.Default.Save();
                }
            }
        }
 private void serialPortTsMenuItem_Click(object sender, EventArgs e)
 {
     FrmSelectSerialPort SelectSerialPort = new FrmSelectSerialPort();
     if (DialogResult.OK == SelectSerialPort.ShowDialog())
     {
         if (SelectSerialPort.COMx != null && SelectSerialPort.COMx != String.Empty)
         {
             Properties.Settings.Default.COMx = SelectSerialPort.COMx;
             Properties.Settings.Default.Save();
         }
     }
 }