public void interpret() { string data_rx = "";// data from COM while (connected) { try { data_rx = myPort.ReadLine(); delLogUpdate updator = new delLogUpdate(form.addLog); this.logBox.BeginInvoke(updator, data_rx); } catch (Exception e) { Console.WriteLine(e.Message); connected = false; delUpdateInfo("ERROR: COM Disconnect"); } } }
public void interpret() { string data_rx = "";// data from COM while (connected) { try { data_rx = myPort.ReadLine(); delLogUpdate updator = new delLogUpdate(form.addLog); this.logBox.BeginInvoke(updator, data_rx); } catch(Exception e) { Console.WriteLine(e.Message); connected = false; delUpdateInfo("ERROR: COM Disconnect"); } } }