Пример #1
0
        /***************************************************************************
         *                            Event Handlers
         ****************************************************************************/

        private void SerialPortSettingsMenuItem_Click(object sender, EventArgs e)
        {
            var serialPortSettingsForm = new SerialPortSettingsForm();
            var result = serialPortSettingsForm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                portsBox.Text = Properties.Settings.Default.SerialPortName;
            }
        }
Пример #2
0
 /***************************************************************************
                               Event Handlers
 ****************************************************************************/
 private void SerialPortSettingsMenuItem_Click(object sender, EventArgs e)
 {
     var serialPortSettingsForm = new SerialPortSettingsForm();
     var result = serialPortSettingsForm.ShowDialog(this);
     if (result == DialogResult.OK)
     {
         portsBox.Text = Properties.Settings.Default.SerialPortName;
     }
 }