Exemple #1
0
 public static void Write(string message)
 {
     if (OnMessage != null)
     {
         EventArgsString argument = new EventArgsString(message);
         OnMessage(null, argument);
     }
 }
Exemple #2
0
 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());
 }
Exemple #5
0
 static void ConsoleListener_OnInput(object sender, EventArgsString e)
 {
     input = e.ToString();
 }