Beispiel #1
0
        public static void ShowMsg(Object sender, Heater.BoiledEventArgs e)
        {
            Heater heat = (Heater)sender;

            Console.WriteLine("Dispaly: the water is boiling , the temperture is '{0}'", e.temperture);
        }
Beispiel #2
0
        public void MakeAlert(Object sender, Heater.BoiledEventArgs e)
        {
            Heater heater = (Heater)sender;

            Console.WriteLine("Alarm: di di di, the water is on '{0}' temperature", e.temperture);
        }