예제 #1
0
 public void show()
 {
     while (true)
     {
         printMenu();
         Console.WriteLine("Input the option: ");
         String  key = Console.ReadLine();
         Command com = commands.getValue(key);
         if (com == null)
         {
             Console.WriteLine("Invalid Option");
             continue;
         }
         com.execute();
     }
 }