-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConsoleHelper.cs
54 lines (47 loc) · 1.39 KB
/
ConsoleHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
namespace CodingChallenges
{
internal class ConsoleHelper
{
public static void Write(string text)
{
Console.WriteLine(text);
}
public static void WritePink(string text)
{
Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine(text);
Console.ResetColor();
}
public static void WriteYellow(string text)
{
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.WriteLine(text);
Console.ResetColor();
}
public static void WriteBlue(string text)
{
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine(text);
Console.ResetColor();
}
public static void WriteRed(string text)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(text);
Console.ResetColor();
}
public static void WriteGreen(string text)
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine(text);
Console.ResetColor();
}
public static void Write(string text, ConsoleColor color = ConsoleColor.White)
{
Console.ForegroundColor = color;
Console.WriteLine(text);
Console.ResetColor();
}
}
}