private void ButtonCancelAction_OnClick(object sender, RoutedEventArgs e) { try { EventHandlers.ClearSettings(this, true, false, false, _streamDeckPanel.BindingHash); EventHandlers.SelectedButtonChanged(this, _streamDeckPanel.SelectedButton, _streamDeckPanel.BindingHash); EventHandlers.NotifyToSyncConfiguration(this, _streamDeckPanel.BindingHash); SetFormState(); } catch (Exception ex) { Common.ShowErrorMessageBox(ex); } }