public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { var systemicProcessNode = treeNode as ITreeNode <SystemicProcessNodeType>; if (!presenter.IsAnImplementationOf <ICompoundProcessesPresenter>()) { return(false); } return(systemicProcessNode != null && _systemicProcessNodeType.Equals(systemicProcessNode.Tag)); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { if (objectRequestingContextMenu == null && presenter.IsAnImplementationOf <IEventGroupListPresenter>()) { return(true); } if (objectRequestingContextMenu.IsAnImplementationOf <EventGroupBuilderDTO>()) { return(true); } return(false); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { var dto = objectRequestingContextMenu as IObjectBaseDTO; if (dto == null) { return(false); } if (!presenter.IsAnImplementationOf <IEventGroupListPresenter>()) { return(false); } var entity = _context.Get <IObjectBase>(dto.Id); return(isContainerWithSpecialContextMenu(entity)); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(presenter.IsAnImplementationOf <IEditFormulaPathListPresenter>() && viewItem.IsAnImplementationOf <EmptyFormulaUsableDTO>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(presenter.IsAnImplementationOf <IDescriptorConditionListPresenter>() && (objectRequestingContextMenu.IsAnImplementationOf <DescriptorConditionDTO>() || objectRequestingContextMenu.IsAnImplementationOf <IRootViewItem <DescriptorConditionDTO> >())); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem.IsAnImplementationOf <ParameterDTO>() && presenter.IsAnImplementationOf <IEditParameterListPresenter>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem == RootNodeTypes.ObservedDataFolder && presenter.IsAnImplementationOf <IExplorerPresenter>()); }
public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(treeNode.IsAnImplementationOf <PartialProcessMoleculeNode>() && presenter.IsAnImplementationOf <ICompoundProcessesPresenter>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { var rootNodeType = viewItem as RootNodeType; return(Equals(_rootNodeType, rootNodeType) && presenter.IsAnImplementationOf <IExplorerPresenter>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(objectRequestingContextMenu.IsAnImplementationOf <ObserverBuilderDTO>() && presenter.IsAnImplementationOf <IContainerObserverBuilderListPresenter>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem.IsAnImplementationOf <JournalPageDTO>() && presenter.IsAnImplementationOf <IJournalPresenter>()); }
public bool IsSatisfiedBy(IParameterDTO parameterDTO, IPresenterWithContextMenu <IParameterDTO> presenter) { return(parameterDTO.Parameter != null && presenter.IsAnImplementationOf <IParameterSetPresenter>()); }
public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(treeNode.TagAsObject.IsAnImplementationOf <ISimulation>() && presenter.IsAnImplementationOf <IParameterIdentificationSimulationSelectionPresenter>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem.IsAnImplementationOf <JournalDiagramBackground>() && presenter.IsAnImplementationOf <IJournalDiagramPresenter>()); }
public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(treeNode.IsAnImplementationOf <UsedObservedDataNode>() && presenter.IsAnImplementationOf <ISimulationExplorerPresenter>()); }
public bool IsSatisfiedBy(IPopulationAnalysisField populationAnalysisField, IPresenterWithContextMenu <IPopulationAnalysisField> presenter) { return(populationAnalysisField.IsAnImplementationOf <IPopulationAnalysisField>() && presenter.IsAnImplementationOf <IPopulationAnalysisFieldsPresenter>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(viewItem.IsAnImplementationOf <CurveChartViewItem>() && presenter.IsAnImplementationOf <IChartDisplayPresenter>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return((objectRequestingContextMenu == null && presenter.IsAnImplementationOf <IMoleculeListPresenter>()) || objectRequestingContextMenu.IsAnImplementationOf <MoleculeBuilderDTO>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(objectRequestingContextMenu.IsAnImplementationOf <NotificationMessageDTO>() && presenter.IsAnImplementationOf <INotificationPresenter>()); }
public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return((viewItem == null || viewItem.IsAnImplementationOf <ReactionPartnerBuilderDTO>()) && presenter.IsAnImplementationOf <IReactionProductsPresenter>()); }
public bool IsSatisfiedBy(ISimulationAnalysisPresenter simulationAnalysisPresenter, IPresenterWithContextMenu <ISimulationAnalysisPresenter> presenter) { return(presenter.IsAnImplementationOf <IEditAnalyzablePresenter>()); }
public override bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter) { return(base.IsSatisfiedBy(treeNode, presenter) && presenter.IsAnImplementationOf <IMoleculesPresenter>()); }
public bool IsSatisfiedBy(IReadOnlyList <IBaseNode> baseNodes, IPresenterWithContextMenu <IReadOnlyList <IBaseNode> > presenter) { return(baseNodes.All(baseNode => baseNode.IsAnImplementationOf <IJournalPageNode>()) && presenter.IsAnImplementationOf <IJournalDiagramPresenter>()); }
protected override bool IsSatisfiedBy(IEntity entity, IPresenterWithContextMenu <IViewItem> presenter) { return(presenter.IsAnImplementationOf <IHierarchicalStructurePresenter>() && entity.IsAnImplementationOf <IContainer>() && !entity.IsAnImplementationOf <INeighborhoodBuilder>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(objectRequestingContextMenu.IsAnImplementationOf <FavoritesNodeViewItem>() && presenter.IsAnImplementationOf <IHierarchicalSimulationPresenter>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(objectRequestingContextMenu.IsAnImplementationOf <FormulaBuilderDTO>() && presenter.IsAnImplementationOf <IFormulaCachePresenter>()); }
public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(objectRequestingContextMenu.IsAnImplementationOf <SpatialStructureRootItem>() && presenter.IsAnImplementationOf <IHierarchicalSpatialStructurePresenter>()); }