Пример #1
0
 private void OnSwitchToggled(Alarm model) => SwitchToggled?.Invoke(this, new AlarmItemEventArgs(model));
 private void OnBorderClicked(object sender, MouseButtonEventArgs mouseButtonEventArgs)
 {
     Switch.Toggle();
     SwitchToggled?.Invoke(this, Switch.IsChecked);
 }