-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuncs.cs
More file actions
24 lines (23 loc) · 678 Bytes
/
Funcs.cs
File metadata and controls
24 lines (23 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
namespace Funcs{
public class Util{
static public void Text(string Text, ConsoleColor color = ConsoleColor.White, bool newLine = true){
Console.ForegroundColor = color;
if(newLine){
Console.WriteLine(Text);
}else{
Console.Write(Text);
}
Console.ResetColor();
}
static public void Pause(){
Console.Read();
}
}
public class Sys{
static public void Exit(int ErrorCode, string ErrorMessage){
Util.Text(ErrorMessage, ConsoleColor.Red, true);
Environment.Exit(ErrorCode);
}
}
}