Inheritance: System.EventArgs
Exemple #1
0
 protected void OnCarCreated(string car)
 {
     if (carCreated != null)
     {
         CarInfoEventArgs e = new CarInfoEventArgs(car);
         carCreated(this, e);
     }
 }
 protected void OnCarCreated(string car)
 {
     if (carCreated != null)
      {
     CarInfoEventArgs e = new CarInfoEventArgs(car);
     carCreated(this, e);
      }
 }
Exemple #3
0
 public void NewCarIsHere(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("{0}: car {1} is new", name, e.Car);
 }
 void CarDealer_NewCarInfo(object sender, CarInfoEventArgs e)
 {
     DeliverEvent(sender, e);
 }
 public void NewCarIsHere(object sender, CarInfoEventArgs e)
 {
     WriteLine($"{_name}: car {e.Car} is new");
 }
 void CarDealer_NewCarInfo(object sender, CarInfoEventArgs e)
 {
     DeliverEvent(sender, e);
 }
Exemple #7
0
 public void NewCarIsHere(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("{0}: car {1} is new", name, e.Car);
 }
 public void NewCarIsHere(object sender, CarInfoEventArgs e)
 {
   WriteLine($"{_name}: car {e.Car} is new");
 }
Exemple #9
0
 public void NewCarArrived(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("Consumer {0}: car {1} arrived", name, e.Car);
 }
Exemple #10
0
 public void NewCarArrived(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("Consumer {0}: car {1} arrived", name, e.Car);
 }
Exemple #11
0
 public void NewCarIsHere(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("                响应事件 sender {0}: args: {1}", name, e.Car);
 }