Esempio n. 1
0
        public Garage <T> CreateGarage(string name, string address, int capacity)
        {
            Garage <T> garage = new Garage <T>(name, address, capacity);

            return(garage);
        }
Esempio n. 2
0
 public int GetCapacity(Garage <T> garage)
 {
     return(garage.Capacity);
 }
Esempio n. 3
0
 public int GetCount(Garage <T> garage)
 {
     return(garage.Count);
 }
Esempio n. 4
0
 public string GetAddress(Garage <T> garage)
 {
     return(garage.Address);
 }
Esempio n. 5
0
 public void SetCapacity(Garage <T> garage, int capacity)
 {
     garage.Capacity = capacity;
 }
Esempio n. 6
0
 public string TypeVehicle(Garage <Vehicle> gar)
 {
     return(gar.ListType());
 }
Esempio n. 7
0
 public void SetAddress(Garage <T> garage, string address)
 {
     garage.Address = address;
 }
Esempio n. 8
0
 public string GetName(Garage <T> garage)
 {
     return(garage.Name);
 }
Esempio n. 9
0
 public void ShowOccupied(Garage <Vehicle> gar)
 {
     PagingList(gar.ListPos(true), 20);
 }
Esempio n. 10
0
 public void ShowEmpty(Garage <Vehicle> gar)
 {
     PagingList(gar.ListPos(false), 20);
 }
Esempio n. 11
0
 public void SetName(Garage <T> garage, string name)
 {
     garage.Name = name;
 }
Esempio n. 12
0
 public string ShowList(Garage <Vehicle> gar)
 {
     return(gar.List());
 }