/// <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);
     }
 }
Exemple #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();
 }