예제 #1
0
 public void Add(Vehicle Vehicle)
 {
     Vehicles.OrderBy(x => x.ID);
     int FreeID = 1;
     foreach (var Veh in Vehicles)
     {
         if (Veh.ID > FreeID)
         {
             break;
         }
         FreeID = Veh.ID + 1;
     }
     Vehicle.ID = FreeID;
     Vehicles.Add(Vehicle);
 }
예제 #2
0
 public void Remove(Vehicle Vehicle)
 {
     Vehicles.Remove(Vehicle);
 }