wasSharpNET
/Console/ConsoleExtensions.cs |
@@ -19,7 +19,6 @@ |
TOP_RIGHT |
} |
|
|
public static void WriteLine(this object data, ConsoleColor foreground, |
ConsoleColor background) |
{ |
@@ -60,6 +59,7 @@ |
System.Console.CursorLeft = Math.Max(System.Console.WindowWidth/2 - data.ToString().Length/2, 0); |
WriteLine(data, System.Console.ForegroundColor, System.Console.BackgroundColor); |
break; |
|
default: |
throw new NotImplementedException(); |
} |
@@ -73,6 +73,7 @@ |
System.Console.CursorLeft = Math.Max(System.Console.WindowWidth / 2 - data.ToString().Length / 2, 0); |
WriteLine(data, foregroundColor, System.Console.BackgroundColor); |
break; |
|
default: |
throw new NotImplementedException(); |
} |
@@ -86,6 +87,7 @@ |
System.Console.CursorLeft = Math.Max(System.Console.WindowWidth/2 - data.ToString().Length/2, 0); |
Write(data, System.Console.ForegroundColor, System.Console.BackgroundColor); |
break; |
|
default: |
throw new NotImplementedException(); |
} |
@@ -104,9 +106,10 @@ |
WriteLine(line, System.Console.ForegroundColor, System.Console.BackgroundColor); |
} |
break; |
|
default: |
throw new NotImplementedException(); |
} |
} |
} |
} |
} |