Пример #1
0
 public ConsoleMenu()
 {
     ExitMenuItem = new ConsoleMenuItem
     {
         Label = "Exit"
     };
 }
Пример #2
0
 protected void DrawMenuItem(ConsoleMenuItem menuItem)
 {
     lock (LockUiObject)
     {
         Write("{0}) ", ConsoleColor.Green, menuItem.MenuSelection);
         WriteLine(menuItem.Label, ConsoleColor.DarkGreen);
     }
 }