public EditMacroWindowViewModel(string displayedMacroId)
        {
            _IsRecordingSwitchEnabled = false;

            _AddKeystrokeUpCommand   = new ObjectParameterRelayCommand(AddKeystrokeUpCommand_Executed, AddKeystrokeUpCommand_CanExecute);
            _AddKeystrokeDownCommand = new ObjectParameterRelayCommand(AddKeystrokeDownCommand_Executed, AddKeystrokeDownCommand_CanExecute);
            _OkCommand = new RelayCommand(OkCommand_Executed);
            _DeleteSelectedKeystrokeCommand = new RelayCommand(DeleteSelectedKeystrokeCommand_Executed);

            _KbMacro = new ConfigurationManager().GetKeyboardMacroById(displayedMacroId);
            _SelectedKeystrokeIndex = -1;
            DisplayedMacroId        = displayedMacroId;
        }
Example #2
0
 public ControlMacrosViewModel()
 {
     _EditMacroCommand = new ObjectParameterRelayCommand(EditMacroCommandExecuted);
 }