private static void Bw_Boil1(object sender, BoilWater.BoilEventArgs e) { BoilWater bw = (BoilWater)sender; Thread.Sleep(5000); Console.WriteLine("延迟温度" + e.temperature); }
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); }