Beispiel #1
0
        private void InitializeCommandManager(EditorPresenter editor)
        {
            LibraryCommandActions libraryActions = _editor.CommandActions.LibraryActions;

            _commandManager.Register(CommandKey.ProjectAddNewLibrary, () => { return(true); }, libraryActions.CommandCreate);
            _commandManager.Register(CommandKey.ProjectSetLibraryDefault, libraryActions.LibraryExists, libraryActions.CommandSetDefault);
        }
Beispiel #2
0
        public CommandActions(PresenterManager pm, EditorPresenter editor)
        {
            _pm     = pm;
            _editor = editor;

            _libraryActions = new LibraryCommandActions(_editor);
        }