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

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