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); }
public CommandActions(PresenterManager pm, EditorPresenter editor) { _pm = pm; _editor = editor; _libraryActions = new LibraryCommandActions(_editor); }