Esempio n. 1
0
        // --------------------------- 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);
            }
        }
Esempio n. 2
0
 private void OnTraceOff(object sender, EventArgs e)
 {
     if (log.IsInfoEnabled)
     {
         log.Info("OnTraceOff");
     }
     if (listBoxTrace != null)
     {
         System.Diagnostics.Trace.Listeners.Remove(listBoxTrace);
     }
     listBoxTrace = null;
 }
Esempio n. 3
0
        // --------------------------- 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);
            }
        }
Esempio n. 4
0
 private void OnTraceOff(object sender, EventArgs e)
 {
     if (log.IsInfoEnabled)
         log.Info("OnTraceOff");
     if (listBoxTrace != null)
         System.Diagnostics.Trace.Listeners.Remove(listBoxTrace);
     listBoxTrace = null;
 }