Exemple #1
0
        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());
        }
Exemple #2
0
 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));
 }
Exemple #4
0
 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));
 }
Exemple #7
0
 protected abstract IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter);
Exemple #8
0
 public void AttachPresenter(ICompoundProcessesPresenter presenter)
 {
     _presenter = presenter;
 }
Exemple #9
0
 protected override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter)
 {
     return(new SpecificBindingFolderContextMenu(treeNode, presenter));
 }
Exemple #10
0
 protected override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, ICompoundProcessesPresenter presenter)
 {
     return(new EnzymaticStabilityProcessFolderContextMenu(treeNode, presenter));
 }
Exemple #11
0
 protected abstract IContextMenu CreateFor(TCompoundProcess compoundProcess, ICompoundProcessesPresenter compoundProcessesPresenter);
Exemple #12
0
 protected IMenuBarItem DeleteMenuFor(TCompoundProcess compoundProcess, ICompoundProcessesPresenter presenter)
 {
     return(CreateMenuButton.WithCaption(PKSimConstants.MenuNames.Delete)
            .WithActionCommand(() => presenter.RemoveProcess(compoundProcess))
            .WithIcon(ApplicationIcons.Delete));
 }
Exemple #13
0
 protected CompoundProcessContextMenu(TCompoundProcess compoundProcess, ICompoundProcessesPresenter presenter)
     : base(compoundProcess, presenter)
 {
 }