Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 public AveragePriceCommand(CarsHouse storage)
 {
     Storage = storage;
 }
Exemplo n.º 3
0
 public CountAllCommand(CarsHouse storage)
 {
     Storage = storage;
 }
Exemplo n.º 4
0
 public CountBrandsCommand(CarsHouse storage)
 {
     Storage = storage;
 }