예제 #1
0
 public static void Write(SysColor clr, string fmt, params object[] args)
 {
     lock (consLock)
     {
         stConsole.SetBgColorFromEnum(clr);
         SysConsole.Write(fmt, args);
         stConsole.ResetColor();
     }
 }
예제 #2
0
 public static void Write(string[] msgs, SysColor clr)
 {
     lock (consLock)
     {
         stConsole.SetBgColorFromEnum(clr);
         stConsole._Write(msgs);
         stConsole.ResetColor();
     }
 }
예제 #3
0
 private static void _MessageConsole(string head, string body, SysColor clr)
 {
     lock (consLock)
     {
         SysConsole.Write(" " + DateTime.Now.ToString("HH:mm:ss") + " [");
         SysConsole.ForegroundColor = clr;
         SysConsole.Write(head);
         SysConsole.ResetColor();
         SysConsole.Write("]" + body + Environment.NewLine);
     }
 }
예제 #4
0
 public static void SetBgColorFromEnum(SysColor clr)
 {
     SysConsole.ForegroundColor = clr;
 }
예제 #5
0
 public static void WriteLine(SysColor clr, string fmt, params object[] args)
 {
     stConsole.Write(clr, fmt, args);
 }
예제 #6
0
 public static void WriteLine(string msg, SysColor clr)
 {
     stConsole.Write(new string[] { msg, Environment.NewLine }, clr);
 }