コード例 #1
0
 private void ButtonResetBinds_OnClick(object sender, RoutedEventArgs e)
 {
     BindManager.ResetDefaults(Settings.Default.ModifierStyle);
     Settings.Default.BindingsModified = DateTime.Now;
     BindWriter.WriteBinds();
     RefreshBinds();
 }
コード例 #2
0
 private void ComboCurrentStyle_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!IsLoaded)
     {
         return;
     }
     Settings.Default.BindingsModified = DateTime.Now;
     BindManager.ResetDefaults(ComboCurrentStyle.SelectedIndex);
     BindWriter.WriteBinds();
     DoTransition();
 }
コード例 #3
0
 private void ComboButtonIcons_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!IsLoaded)
     {
         return;
     }
     DoTransition();
     Settings.Default.BindingsModified = DateTime.Now;
     BindWriter.WriteBinds();
     MainWindow.UpdateButtonStyle();
 }
コード例 #4
0
ファイル: BindManager.cs プロジェクト: oldrock674/wowmapper
        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();
        }
コード例 #5
0
        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();
        }
コード例 #6
0
 private void CheckExportBindings_OnChecked(object sender, RoutedEventArgs e)
 {
     BindWriter.WriteBinds();
 }
コード例 #7
0
 public StyleHelper()
 {
     BindWrite = DoBindWrite;
     BindRead  = DoBindRead;
 }