public static void Write(SysColor clr, string fmt, params object[] args) { lock (consLock) { stConsole.SetBgColorFromEnum(clr); SysConsole.Write(fmt, args); stConsole.ResetColor(); } }
public static void Write(string[] msgs, SysColor clr) { lock (consLock) { stConsole.SetBgColorFromEnum(clr); stConsole._Write(msgs); stConsole.ResetColor(); } }
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); } }
public static void SetBgColorFromEnum(SysColor clr) { SysConsole.ForegroundColor = clr; }
public static void WriteLine(SysColor clr, string fmt, params object[] args) { stConsole.Write(clr, fmt, args); }
public static void WriteLine(string msg, SysColor clr) { stConsole.Write(new string[] { msg, Environment.NewLine }, clr); }