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));
        }
示例#4
0
 public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(presenter.IsAnImplementationOf <IEditFormulaPathListPresenter>() && viewItem.IsAnImplementationOf <EmptyFormulaUsableDTO>());
 }
示例#5
0
 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>());
 }
示例#8
0
 public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter)
 {
     return(treeNode.IsAnImplementationOf <PartialProcessMoleculeNode>() && presenter.IsAnImplementationOf <ICompoundProcessesPresenter>());
 }
示例#9
0
        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>());
 }
示例#11
0
 public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(viewItem.IsAnImplementationOf <JournalPageDTO>() &&
            presenter.IsAnImplementationOf <IJournalPresenter>());
 }
示例#12
0
 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>());
 }
示例#14
0
 public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(viewItem.IsAnImplementationOf <JournalDiagramBackground>() &&
            presenter.IsAnImplementationOf <IJournalDiagramPresenter>());
 }
示例#15
0
 public bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter)
 {
     return(treeNode.IsAnImplementationOf <UsedObservedDataNode>() &&
            presenter.IsAnImplementationOf <ISimulationExplorerPresenter>());
 }
示例#16
0
 public bool IsSatisfiedBy(IPopulationAnalysisField populationAnalysisField, IPresenterWithContextMenu <IPopulationAnalysisField> presenter)
 {
     return(populationAnalysisField.IsAnImplementationOf <IPopulationAnalysisField>() &&
            presenter.IsAnImplementationOf <IPopulationAnalysisFieldsPresenter>());
 }
示例#17
0
 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>());
 }
示例#19
0
 public bool IsSatisfiedBy(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(objectRequestingContextMenu.IsAnImplementationOf <NotificationMessageDTO>() &&
            presenter.IsAnImplementationOf <INotificationPresenter>());
 }
示例#20
0
 public bool IsSatisfiedBy(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return((viewItem == null || viewItem.IsAnImplementationOf <ReactionPartnerBuilderDTO>()) &&
            presenter.IsAnImplementationOf <IReactionProductsPresenter>());
 }
示例#21
0
 public bool IsSatisfiedBy(ISimulationAnalysisPresenter simulationAnalysisPresenter, IPresenterWithContextMenu <ISimulationAnalysisPresenter> presenter)
 {
     return(presenter.IsAnImplementationOf <IEditAnalyzablePresenter>());
 }
示例#22
0
 public override bool IsSatisfiedBy(ITreeNode treeNode, IPresenterWithContextMenu <ITreeNode> presenter)
 {
     return(base.IsSatisfiedBy(treeNode, presenter) && presenter.IsAnImplementationOf <IMoleculesPresenter>());
 }
示例#23
0
 public bool IsSatisfiedBy(IReadOnlyList <IBaseNode> baseNodes, IPresenterWithContextMenu <IReadOnlyList <IBaseNode> > presenter)
 {
     return(baseNodes.All(baseNode => baseNode.IsAnImplementationOf <IJournalPageNode>()) &&
            presenter.IsAnImplementationOf <IJournalDiagramPresenter>());
 }
示例#24
0
 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>());
 }