Ejemplo n.º 1
0
        private void ButtonAddNew_OnClick(object sender, RoutedEventArgs e)
        {
            var success = HotKeyManager.AddPredefinedHotkey(SelectedHotKey,
                                                            ((PredefinedHotKeyActionInfo)ComboBoxActions.SelectedItem).MethodName);

            if (!success)
            {
                ErrorText = "Could not register hotkey.";
            }
        }