Exemple #1
0
 public void OnDishReady(DishEventArgs e)
 {
     if (DishReady != null)
     {
         EventHandler <DishEventArgs> handler = DishReady;
         handler.Invoke(this, e);
     }
 }
Exemple #2
0
 public void OnDishReady(object sender, DishEventArgs e)
 {
     Console.WriteLine("Serving " + e.DishName + " To the customer");
 }