/// <summary>
 /// 事件发生时通知订阅者
 /// </summary>
 /// <param name="args">事件参数对象</param>
 private void OnWaterBoiled(WaterBoiledEventArgs args)
 {
     WaterBoiled?.Invoke(this, args);
 }
 public void ShowMsg(object sender, WaterBoiledEventArgs e)
 {
     Screen.Items.Add($"水快烧开了,当前温度:{e.Temperature }度。");
     Screen.Refresh();
 }
 public static void MakeAlert6335(object sender, WaterBoiledEventArgs e)
 {
     System.Media.SystemSounds.Asterisk.Play();
 }