private void AlarmSwitch(bool b) { if (b && !Alarm) { Alarm = true; UserInformer.AlarmStart(this); } if (!b && Alarm) { Alarm = false; UserInformer.AlarmStop(this); } }
private void StopAlarm(object sender, System.Windows.Input.MouseButtonEventArgs e) { UserInformer.AlarmStop(); }