// --------------------------- TRACE ACTIONS ----------------------------------- private void OnTraceOn(object sender, EventArgs e) { if (listBoxTrace == null) { // Create a text writer that writes to the console screen, and add // it to the trace listeners listBoxTrace = new Sxta.GUIUtils.ListBoxTraceListener(this.m_outputWindow.OutputArea); System.Diagnostics.Trace.Listeners.Add(listBoxTrace); } }
private void OnTraceOff(object sender, EventArgs e) { if (log.IsInfoEnabled) { log.Info("OnTraceOff"); } if (listBoxTrace != null) { System.Diagnostics.Trace.Listeners.Remove(listBoxTrace); } listBoxTrace = null; }
private void OnTraceOff(object sender, EventArgs e) { if (log.IsInfoEnabled) log.Info("OnTraceOff"); if (listBoxTrace != null) System.Diagnostics.Trace.Listeners.Remove(listBoxTrace); listBoxTrace = null; }