Exemplo n.º 1
0
 public void Delay(Airplane airplane, int minutes)
 {
     OnDelay?.Invoke(minutes, airplane);
 }
Exemplo n.º 2
0
 public void Incoming(Airplane airplane)
 {
     Airplanes.Add(airplane);
     OnArrival?.Invoke(this, airplane);
 }
Exemplo n.º 3
0
 public void Outgoing(Airplane airplane)
 {
     Airplanes.Remove(airplane);
     OnTakeoff?.Invoke(this, airplane);
 }
Exemplo n.º 4
0
 public static void Delay(int minutes, Airplane a)
 {
     Console.WriteLine("The airplane " + a.Name + " has been delayed by " + minutes + " minutes");
 }
Exemplo n.º 5
0
 public static void Arrival(object source, Airplane a)
 {
     Console.WriteLine("The airplane " + a.Name + " has arrived");
 }
Exemplo n.º 6
0
 public static void TakeOff(object source, Airplane a)
 {
     Console.WriteLine("The airplane " + a.Name + " just tookoff");
 }
Exemplo n.º 7
0
 public void InformUserPlaneTakeoff(object source, Airplane airplane)
 {
     Console.WriteLine("Informing " + name + " that airplane " + airplane.Name + " has tookoff");
 }
Exemplo n.º 8
0
 public void InformUserPlaneDelay(int minutes, Airplane airplane)
 {
     Console.WriteLine("Informing " + name + " that airplane " + airplane.Name + " has been delayed by " + minutes + " minutes");
 }