private void ButtonResetBinds_OnClick(object sender, RoutedEventArgs e) { BindManager.ResetDefaults(Settings.Default.ModifierStyle); Settings.Default.BindingsModified = DateTime.Now; BindWriter.WriteBinds(); RefreshBinds(); }
private void ComboCurrentStyle_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!IsLoaded) { return; } Settings.Default.BindingsModified = DateTime.Now; BindManager.ResetDefaults(ComboCurrentStyle.SelectedIndex); BindWriter.WriteBinds(); DoTransition(); }
private void ComboButtonIcons_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (!IsLoaded) { return; } DoTransition(); Settings.Default.BindingsModified = DateTime.Now; BindWriter.WriteBinds(); MainWindow.UpdateButtonStyle(); }
public static void SetKey(GamepadButton button, Key key) { var binding = CurrentKeybinds.First(bind => bind.BindType == button); binding.Key = key; SaveBindings(); BindingsChanged?.Invoke(null, EventArgs.Empty); Properties.Settings.Default.BindingsModified = DateTime.Now; BindWriter.WriteBinds(); }
private void CheckCustomBinding_Changed(object sender, RoutedEventArgs e) { if (!IsLoaded) { return; } BindManager.ResetDefaults(Settings.Default.ModifierStyle); Settings.Default.BindingsModified = DateTime.Now; BindWriter.WriteBinds(); RefreshBinds(); DoTransition(); }
private void CheckExportBindings_OnChecked(object sender, RoutedEventArgs e) { BindWriter.WriteBinds(); }