protected override IEnumerable <IMenuBarItem> AllMenuItemsFor(SystemicProcess systemicProcess, ICompoundProcessesPresenter presenter) { yield return(CreateMenuButton.WithCaption(PKSimConstants.MenuNames.Rename) .WithActionCommand(() => presenter.RenameDataSourceInProcess(systemicProcess)) .WithIcon(ApplicationIcons.Rename)); yield return(DeleteMenuFor(systemicProcess, presenter).AsGroupStarter()); }
protected override IContextMenu CreateFor(SystemicProcess compoundProcess, ICompoundProcessesPresenter compoundProcessesPresenter) { return(new SystemicProcessContextMenu(compoundProcess, compoundProcessesPresenter)); }
protected override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter) { return(new InductionProcessFolderContextMenu(treeNode, presenter)); }
public SystemicProcessContextMenu(SystemicProcess clearanceProcess, ICompoundProcessesPresenter presenter) : base(clearanceProcess, presenter) { }
public PartialProcessContextMenu(PartialProcess compoundProcess, ICompoundProcessesPresenter presenter) : base(compoundProcess, presenter) { }
protected override IContextMenu CreateFor(PartialProcess compoundProcess, ICompoundProcessesPresenter compoundProcessesPresenter) { return(new PartialProcessContextMenu(compoundProcess, compoundProcessesPresenter)); }
protected abstract IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter);
public void AttachPresenter(ICompoundProcessesPresenter presenter) { _presenter = presenter; }
protected override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter) { return(new SpecificBindingFolderContextMenu(treeNode, presenter)); }
protected override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter) { return(new EnzymaticStabilityProcessFolderContextMenu(treeNode, presenter)); }
protected abstract IContextMenu CreateFor(TCompoundProcess compoundProcess, ICompoundProcessesPresenter compoundProcessesPresenter);
protected IMenuBarItem DeleteMenuFor(TCompoundProcess compoundProcess, ICompoundProcessesPresenter presenter) { return(CreateMenuButton.WithCaption(PKSimConstants.MenuNames.Delete) .WithActionCommand(() => presenter.RemoveProcess(compoundProcess)) .WithIcon(ApplicationIcons.Delete)); }
protected CompoundProcessContextMenu(TCompoundProcess compoundProcess, ICompoundProcessesPresenter presenter) : base(compoundProcess, presenter) { }