Beispiel #1
0
 public void Trace(NetworkElement sender, string message, params object[] args)
 {
     if (args != null)
     {
         for (int i = 0; i < args.Length; i++)
         {
             if (args[i] is double)
             {
                 args[i] = ((double)args[i]).ToString("0.000");
             }
         }
     }
     Trace(sender, string.Format(message, args));
 }
Beispiel #2
0
 public void Trace(NetworkElement sender, string message)
 {
     Trace(string.Format("[{0}]: {1}", sender.GetDescription(), message));
 }