private void buttonReloadSerial_Click(object sender, EventArgs e) { Log("Getting available serial ports..."); comboBox1.Items.Clear(); foreach (string str in SerialCommunicator.getSerialPorts()) { comboBox1.Items.Add(str); } }
public Form1() { communicator = new SerialCommunicator(LogSerialMessage, Log); InitializeComponent(); }