void Media_OnTrace(object sender, TraceEventArgs e)
 {
     GXLogWriter.WriteLog(e.ToString());
 }
Exemple #2
0
 void gxTerminal1_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());
     }
 }