Exemple #1
0
        void WriteToSchedules(Flightplan plan)
        {
            //FileStream fs = new FileStream(fileLocation, FileMode.Open);

            StreamWriter sw = File.AppendText(fileLocation);

            //Write to file, and seperate with ;
            sw.WriteLine($"{plan.Terminal.name};{plan.Departure};{plan.Dest}");

            sw.Close();
        }
Exemple #2
0
 public Luggage(Flightplan plan, Guid guid)
 {
     this.flightplan = plan;
     this.Id         = guid;
 }
Exemple #3
0
 public PlaneEventArgs(Flightplan plan, int passAmount)
 {
     this.Flightplan = plan;
     //Update the flightplan with amount of passengers
     this.Flightplan.passengerAmount = passAmount;
 }