Exemplo n.º 1
0
 // Invoke the Change event
 public virtual void OnChange(ChangeEventArgs e)
 {
     if (Change != null)
     {
         Change(this, e);
     }
 }
Exemplo n.º 2
0
 public void Update(object sender, ChangeEventArgs e)
 {
     Console.WriteLine("Notified {0} of {1}'s " +
         "change to {2:C}", Name, e.Symbol, e.Price);
 }
Exemplo n.º 3
0
 public void Update(AirlineSchedule sender, ChangeEventArgs e)
 {
     Console.WriteLine(
         "{0} Air Traffic Control Notified:\n {1}'s flight 497 from {2} " +
         "to {3} new deprture time: {4:hh:mmtt}",
         Name,
         e.Airline,
         e.DeparturnAirport,
         e.ArrivalAirport,
         e.DepartureDateTime);
     Console.WriteLine("---------");
 }