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