Inheritance: System.EventArgs
Esempio n. 1
0
 protected void OnCarCreated(string car)
 {
     if (carCreated != null)
     {
         CarInfoEventArgs e = new CarInfoEventArgs(car);
         carCreated(this, e);
     }
 }
Esempio n. 2
0
 protected void OnCarCreated(string car)
 {
     if (carCreated != null)
      {
     CarInfoEventArgs e = new CarInfoEventArgs(car);
     carCreated(this, e);
      }
 }
Esempio n. 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);
 }
Esempio n. 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");
 }
Esempio n. 9
0
 public void NewCarArrived(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("Consumer {0}: car {1} arrived", name, e.Car);
 }
Esempio n. 10
0
 public void NewCarArrived(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("Consumer {0}: car {1} arrived", name, e.Car);
 }
Esempio n. 11
0
 public void NewCarIsHere(object sender, CarInfoEventArgs e)
 {
     Console.WriteLine("                响应事件 sender {0}: args: {1}", name, e.Car);
 }