public static void Write(string message) { if (OnMessage != null) { EventArgsString argument = new EventArgsString(message); OnMessage(null, argument); } }
public static void waitForConfirmation() { if (PressEnter != null) { EventArgsString argument = new EventArgsString(""); PressEnter(null, argument); } }
void UI_PressEnter(object sender, EventArgsString e) { Console.WriteLine("(Press Enter to Continue)"); Console.ReadLine(); Console.Clear(); }
void UI_OnMessage(object sender, EventArgsString e) { ParseColors(e.ToString()); }
static void ConsoleListener_OnInput(object sender, EventArgsString e) { input = e.ToString(); }