public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(treeNode.IsAnImplementationOf <PartialProcessMoleculeNode>() && presenter.IsAnImplementationOf <ICompoundProcessesPresenter>()); }
public IContextMenu CreateFor(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { var bbInSimulationNode = treeNode.DowncastTo <UsedBuildingBlockInSimulationNode>(); return(CreateFor(bbInSimulationNode.Simulation, bbInSimulationNode.UsedBuildingBlock, bbInSimulationNode.TemplateBuildingBlock.DowncastTo <TBuildingBlock>())); }
public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(createFor(viewItem.DowncastTo <ReactionPartnerBuilderDTO>(), presenter.DowncastTo <IReactionProductsPresenter>())); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem.IsAnImplementationOf <ObservedDataNode>() || viewItem.IsAnImplementationOf <ObservedDataViewItem>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(presenter.IsAnImplementationOf <IEditExplicitFormulaPresenter>() && viewItem.IsAnImplementationOf <EmptyFormulaUsableDTO>()); }
public override IContextMenu CreateFor(ClassifiableParameterIdentification classifiableParameterIdentification, IPresenterWithContextMenu <ITreeNode> presenter) { return(new ParameterIdentificationContextMenu(classifiableParameterIdentification.ParameterIdentification)); }
public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(IoC.Resolve <IContextMenuForMoleculeBuilder>().InitializeWith(viewItem as MoleculeBuilderDTO, presenter)); }
public override IContextMenu CreateFor(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(new SummaryChartContextMenu(treeNode.TagAsObject.DowncastTo <ISimulationComparison>())); }
public override IContextMenu CreateFor(PKSimEvent pkSimEvent, IPresenterWithContextMenu <ITreeNode> presenter) { return(new EventContextMenu(pkSimEvent)); }
public override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(new ProtocolFolderContextMenu(_repository, _buildingBlockRepository)); }
public override IContextMenu CreateFor(ITreeNode <RootNodeType> treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(new ParameterIdentificationFolderContextMenu(treeNode, presenter.DowncastTo <IExplorerPresenter>())); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(objectRequestingContextMenu.IsAnImplementationOf <ChartNode>()); }
public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { var contextMenu = IoC.Resolve <ContextMenuForSummaryChart>(); return(contextMenu.InitializeWith(viewItem.DowncastTo <ChartNode>().Tag)); }
protected override IContextMenu CreateFor(IndividualSimulation simulation, IPresenterWithContextMenu <ITreeNode> presenter) { return(new IndividualSimulationContextMenu(simulation)); }
protected override IContextMenu CreateFor(IReadOnlyList <IBuildingBlockInfo> buildingBlockInfos, IPresenterWithContextMenu <IReadOnlyList <ITreeNode> > presenter) { return(new MultipleBuildingBlockNodeContextMenu(buildingBlockInfos.Select(x => x.UntypedBuildingBlock).ToList(), _context)); }
public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(new AxisContextMenu(viewItem.DowncastTo <AxisViewItem>())); }
public override bool IsSatisfiedBy(IReadOnlyList <ITreeNode> treeNodes, IPresenterWithContextMenu <IReadOnlyList <ITreeNode> > presenter) { var allBuildingBlockInfo = AllTagsFor(treeNodes); return(base.IsSatisfiedBy(treeNodes, presenter) && allBuildingBlockInfo.Select(x => x.UntypedBuildingBlock.GetType()).Distinct().Count() == 1); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem.IsAnImplementationOf <AxisViewItem>()); }
public override IContextMenu CreateFor(Protocol protocol, IPresenterWithContextMenu <ITreeNode> presenter) { return(new ProtocolContextMenu(protocol)); }
public IContextMenu CreateFor(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(CreateFor(SimulationFrom(treeNode), presenter)); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return((objectRequestingContextMenu == null && presenter.IsAnImplementationOf <IMoleculeListPresenter>()) || objectRequestingContextMenu.IsAnImplementationOf <MoleculeBuilderDTO>()); }
protected abstract IContextMenu CreateFor(TSimulation simulation, IPresenterWithContextMenu <ITreeNode> presenter);
public IContextMenu CreateFor(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(new ContextMenuForEmptyFormulaUsablePath(presenter.DowncastTo <IEditExplicitFormulaPresenter>())); }
public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(SimulationFrom(treeNode) != null); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem == RootNodeTypes.ObservedDataFolder && presenter.IsAnImplementationOf <IExplorerPresenter>()); }
public IContextMenu CreateFor(IMdiChildView view, IPresenterWithContextMenu <IMdiChildView> presenter) { return(new MdiChildViewContextMenu(view)); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return((viewItem == null || viewItem.IsAnImplementationOf <ReactionPartnerBuilderDTO>()) && presenter.IsAnImplementationOf <IReactionProductsPresenter>()); }
public bool IsSatisfiedBy(IMdiChildView view, IPresenterWithContextMenu <IMdiChildView> presenter) { return(view != null); }
public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(new ContextMenuForParameterInList(viewItem.DowncastTo <ParameterDTO>(), presenter.DowncastTo <IEditParameterListPresenter>())); }
public IContextMenu CreateFor(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(new PartialProcessMoleculeContextMenu(treeNode.DowncastTo <PartialProcessMoleculeNode>(), presenter.DowncastTo <ICompoundProcessesPresenter>())); }