Example #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();
        }
Example #2
0
File: Luggage.cs Project: KavTV/H2
 public Luggage(Flightplan plan, Guid guid)
 {
     this.flightplan = plan;
     this.Id         = guid;
 }
Example #3
0
 public PlaneEventArgs(Flightplan plan, int passAmount)
 {
     this.Flightplan = plan;
     //Update the flightplan with amount of passengers
     this.Flightplan.passengerAmount = passAmount;
 }