private void chronManager_EntryReceived(object sender, ChronEventArgs e) { if (InvokeRequired) { // Event can be received on a separate thread, so we need to push the message // back on the GUI thread before we execute. BeginInvoke(new Action <object, ChronEventArgs>(chronManager_EntryReceived), sender, e); return; } txtBoxDiagnostics.Text += e.State.Diagnostics + "\r\n"; // System.Diagnostics.Debug.WriteLine("Chron Device removed."); }
private void chronManager_EntryReceived(object sender, ChronEventArgs e) { if (InvokeRequired) { // Event can be received on a separate thread, so we need to push the message // back on the GUI thread before we execute. BeginInvoke(new Action <object, ChronEventArgs>(chronManager_EntryReceived), sender, e); return; } if (e.State.Overidden) { //mOverrideControl.cboDevice0.Checked = Byte2Bit(e.State.GetData()[0]); //mOverrideControl.cboDevice1.Checked = Byte2Bit(e.State.GetData()[1]); //mOverrideControl.cboDevice2.Checked = Byte2Bit(e.State.GetData()[2]); //mOverrideControl.cboDevice3.Checked = Byte2Bit(e.State.GetData()[3]); //mOverrideControl.cboDevice4.Checked = Byte2Bit(e.State.GetData()[4]); //mOverrideControl.cboDevice5.Checked = Byte2Bit(e.State.GetData()[5]); //mOverrideControl.cboDevice6.Checked = Byte2Bit(e.State.GetData()[6]); //mOverrideControl.cboDevice7.Checked = Byte2Bit(e.State.GetData()[7]); } txtBoxDiagnostics.Text += e.State.Diagnostics + "\r\n"; // System.Diagnostics.Debug.WriteLine("Chron Device removed."); }