Exemple #1
0
 public static void EditPlane(int index, Flight_Constructor flight)
 {
     Hanger_Database.Hanger[index].AirplaneNumber        = flight.AirplaneNumber;
     Hanger_Database.Hanger[index].Model                 = flight.Model;
     Hanger_Database.Hanger[index].Plane_Cargo_Width     = flight.Plane_Cargo_Width;
     Hanger_Database.Hanger[index].Plane_Cargo_Length    = flight.Plane_Cargo_Length;
     Hanger_Database.Hanger[index].Plane_Cargo_Height    = flight.Plane_Cargo_Height;
     Hanger_Database.Hanger[index].CargoCapacity         = flight.CargoCapacity;
     Hanger_Database.Hanger[index].FlightTime            = flight.FlightTime;
     Hanger_Database.Hanger[index].FuelCapacity          = flight.FuelCapacity;
     Hanger_Database.Hanger[index].RunwayLength          = flight.RunwayLength;
     Hanger_Database.Hanger[index].DateOfStartingService = flight.DateOfStartingService;
     Hanger_Database.Hanger[index].DateOfEndingService   = flight.DateOfEndingService;
 }
Exemple #2
0
 public static void AddPlane(Flight_Constructor flight)
 {
     Hanger_Database.Hanger.Add(flight);
 }