Beispiel #1
0
        protected virtual void OnFoodReadyForTest(FoodReadyEventArgs e)
        {
            EventHandler <FoodReadyEventArgs> handler = FoodReady;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #2
0
 void HandleEventFoodReady(object sender, FoodReadyEventArgs e)
 {
     Eat(e.thisFood);
 }