Exemplo n.º 1
0
 static void Main(string[] args)
 {
     UI.Menu m = new UI.Menu();
     m.MenuItems.Add(new UI.MenuItem()
     {
         Title = "Misc", Key = ConsoleKey.D1, Command = new command1()
     });
     m.MenuItems.Add(new UI.MenuItem()
     {
         Title = "Date Time", Key = ConsoleKey.D2, Command = new command2()
     });
     m.MenuItems.Add(new UI.MenuItem()
     {
         Title = "nothig", Key = ConsoleKey.N, Command = new command3()
     });
     m.MenuItems.Add(new UI.MenuItem()
     {
         Title = "MP", Key = ConsoleKey.M, Command = new command4()
     });
     m.MenuItems.Add(new UI.MenuItem()
     {
         Title = "Auto", Key = ConsoleKey.A, Command = new ClassTemplate()
     });
     m.Print();
 }