예제 #1
0
 /// <summary>
 /// Entry point
 /// </summary>
 static void Main()
 {
     try
     {
         CarsHouse     carsHouse = new CarsHouse();
         CarsHouseMenu Menu      = CarsHouseMenu.getMenu();
         Menu.Interact(carsHouse);
     }
     catch (System.Exception ex)
     {
         System.Console.WriteLine("Error: " + ex.Message);
     }
 }
예제 #2
0
 /// <summary>
 /// Calls Exit() for Menu
 /// </summary>
 /// <param name="carsHouse">Not used for this command</param>
 /// <param name="additionalParameter">Not used for this command</param>
 public void Execute(string additionalParameter = null)
 {
     CarsHouseMenu.getMenu().Exit();
 }