コード例 #1
0
        private static void Bw_Boil1(object sender, BoilWater.BoilEventArgs e)
        {
            BoilWater bw = (BoilWater)sender;

            Thread.Sleep(5000);
            Console.WriteLine("延迟温度" + e.temperature);
        }
コード例 #2
0
        private static void Bw_Boil(object sender, BoilWater.BoilEventArgs e)
        {
            BoilWater bw = (BoilWater)sender;

            //Console.WriteLine("价格"+bw.price);
            // Console.WriteLine("温度 obj" + bw.temperature);
            Console.WriteLine("温度" + e.temperature);
        }