Exemple #1
0
        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            Keys keyData = KeyEventExts.ToWinforms(e).KeyData;

            CurrentBindingKey = keyData;
            UpdateResultLabel();
        }
Exemple #2
0
        private void ResetButton_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("You can not reverse this, do you want to continue?", "WARNING!", MessageBoxButton.YesNo, MessageBoxImage.Warning);

            if (result == MessageBoxResult.Yes)
            {
                Properties.Settings.MyKeyBinds.SetInput(KeyRefrence, Properties.Settings.MyDefaultKeyBinds.GetInput(KeyRefrence));

                Classes.Options.InputPreferences.Save();
                Classes.Options.InputPreferences.Reload();
                KeysConverter kc = new KeysConverter();
                CurrentBindingKey = (Keys)kc.ConvertFromString(KeyBindsList[ListIndex].ToString());

                UpdateResultLabel();
                SetupExistingKeybinds(KeyRefrence);
                SetupListBox();
            }
        }
Exemple #3
0
 private void Button_Click_3(object sender, RoutedEventArgs e)
 {
     CurrentBindingKey = Keys.ShiftKey;
     UpdateResultLabel();
 }