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

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