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