Exemple #1
0
 private void MediaOnTrace(object sender, TraceEventArgs e)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new TraceEventHandler(MediaOnTrace), sender, e);
     }
     else
     {
         TraceView.AppendText(e.ToString() + Environment.NewLine);
     }
 }
Exemple #2
0
 void Net1_OnTrace(object sender, TraceEventArgs e)
 {
     if ((e.Type & TraceTypes.Info) != 0)
     {
         System.Diagnostics.Debug.WriteLine(e.ToString());
     }
     else if ((e.Type & TraceTypes.Error) != 0)
     {
         System.Diagnostics.Debug.WriteLine(e.ToString());
     }
     else if ((e.Type & TraceTypes.Warning) != 0)
     {
         System.Diagnostics.Debug.WriteLine(e.ToString());
     }
     else if ((e.Type & TraceTypes.Sent) != 0)
     {
         System.Diagnostics.Debug.WriteLine("<- " + e.ToString());
     }
     else if ((e.Type & TraceTypes.Received) != 0)
     {
         System.Diagnostics.Debug.WriteLine("-> " + e.ToString());
     }
 }
 void Media_OnTrace(object sender, TraceEventArgs e)
 {
     GXLogWriter.WriteLog(e.ToString());
 }