public void ExitProgram(object source, MyEventArgs e) { if (e.GetInfo() == '\n') Environment.Exit (0); }
public void numberPressed(object source, MyEventArgs e) { Console.WriteLine ("Key {0} was pressed", e.GetInfo()); }