Beispiel #1
0
        private void buttonConnect_Click(object sender, EventArgs e)
        {
            if (!comm.Connected)
            {
                Properties.Settings.Default.Comport = comboBoxCOM.Text;
                Properties.Settings.Default.Baud    = comboBoxBaudrate.Text;
                Properties.Settings.Default.Save();

                Connect();
            }
            else
            {
                comm.Disconnect();
                buttonConnect.Text = "Connect";
            }
        }
Beispiel #2
0
 public void Disconnect()
 {
     serialComm.Disconnect();
 }