@@ -15,17 +15,17 @@ public class CustomConsole
1515 public static void WriteLineInfo ( string text )
1616 {
1717 Console . ForegroundColor = ConsoleColor . Cyan ;
18- Global . AConsole . Write ( "[Info] " . ToCharArray ( ) ) ;
18+ Console . Write ( "[Info] " ) ;
1919 Console . ForegroundColor = ConsoleColor . White ;
20- Global . AConsole . Write ( ( text + "\n " ) . ToCharArray ( ) ) ;
20+ Console . Write ( text + "\n " ) ;
2121 Global . debugger . Send ( "[Info] " + text ) ;
2222 }
2323 public static void WriteLineWarning ( string text )
2424 {
2525 Console . ForegroundColor = ConsoleColor . Yellow ;
26- Global . AConsole . Write ( "[WARNING] " . ToCharArray ( ) ) ;
26+ Console . Write ( "[WARNING] " ) ;
2727 Console . ForegroundColor = ConsoleColor . White ;
28- Global . AConsole . Write ( ( text + "\n " ) . ToCharArray ( ) ) ;
28+ Console . Write ( text + "\n " ) ;
2929 Global . debugger . Send ( "[WARNING] " + text ) ;
3030 }
3131 /// <summary>
@@ -35,29 +35,29 @@ public static void WriteLineWarning(string text)
3535 /// <param name="tipColor"></param>
3636 /// <param name="text"></param>
3737 /// <param name="tipText"></param>
38- public static void WriteLineCustom ( ConsoleColor tipColor , string text , string tipText )
38+ public static void WriteLineCustom ( ConsoleColor tipColor , string text , string tipText )
3939 {
4040 Console . ForegroundColor = tipColor ;
41- Global . AConsole . Write ( ( "[" + tipText + "] " ) . ToCharArray ( ) ) ;
41+ Console . Write ( "[" + tipText + "] " ) ;
4242 Console . ForegroundColor = ConsoleColor . White ;
43- Global . AConsole . Write ( ( text + "\n " ) . ToCharArray ( ) ) ;
43+ Console . Write ( text + "\n " ) ;
4444 Global . debugger . Send ( "[" + tipText + "] " + text ) ;
4545 }
4646 public static void WriteLineOK ( string text )
4747 {
4848 Console . ForegroundColor = ConsoleColor . Green ;
49- Global . AConsole . Write ( "[OK] " . ToCharArray ( ) ) ;
49+ Console . Write ( "[OK] " ) ;
5050 Console . ForegroundColor = ConsoleColor . White ;
51- Global . AConsole . Write ( ( text + "\n " ) . ToCharArray ( ) ) ;
51+ Console . Write ( text + "\n " ) ;
5252 Global . debugger . Send ( "[OK] " + text ) ;
5353 }
5454 public static void WriteLineError ( string text )
5555 {
5656 Console . ForegroundColor = ConsoleColor . DarkRed ;
57- Global . AConsole . Write ( ( "[Error] " ) . ToCharArray ( ) ) ;
57+ Console . Write ( "[Error] " ) ;
5858 Console . ForegroundColor = ConsoleColor . White ;
59- Global . AConsole . Write ( ( text + "\n " ) . ToCharArray ( ) ) ;
59+ Console . Write ( text + "\n " ) ;
6060 Global . debugger . Send ( "[Error] " + text ) ;
6161 }
6262 }
63- }
63+ }
0 commit comments