private void Connect() { comm = new CSerialComm(); comm.Comport = Properties.Settings.Default.Comport; comm.Baudrate = Properties.Settings.Default.Baud; if (comm.Connect()) { CDroneManager.Initialize(comm); buttonConnect.Text = "Disconnect"; RefreshAll(); } }
public void ConnectSerial(string comport, string baudrate) { serialComm = new CSerialComm(); serialComm.Connect(comport, baudrate); serialComm.OnPacket += comm_OnPacket; }