void closeAll(bool show) { Trace.WriteLine("Closing..."); if (receiver != null) { if (show) { addEventDisplay("Thread", "Waiting thread to terminate..."); } receiver.Abort(); receiver.Join(500); receiver = null; } if (mqthread != null) { if (show) { addEventDisplay("Thread", "Waiting MQ thread to terminate..."); } mqthread.Abort(); mqthread.Join(500); mqthread = null; } if (client != null) { if (show) { addEventDisplay("Thread", "Waiting connecting to terminate..."); } client.Close(); client = null; } if (mqclient != null) { if (show) { addEventDisplay("Thread", "Waiting MQ connecting to terminate..."); } mqclient.Close(); mqclient = null; } if (condbg != null) { condbg.closeAll(); condbg = null; } if (show) { lvChannels.Items.Clear(); lvDeviceInfo.Items.Clear(); lvUserlog.Items.Clear(); } EntryMap.Clear(); }
void resetConDbg() { if (condbg != null) { condbg.closeAll(); condbg = null; } }
void checkEnableConDbg() { if (condbg == null) { condbg = new ConDbgConnection(this, Convert.ToInt32(edDebugPort.Text)); condbg.Connect(); } }