Exemple #1
0
 public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(createFor(viewItem.DowncastTo <ReactionPartnerBuilderDTO>(), presenter.DowncastTo <IReactionProductsPresenter>()));
 }
Exemple #2
0
 public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(CreateFor(viewItem.DowncastTo <TransportBuilderDTO>(), presenter.DowncastTo <TPresenter>()));
 }
Exemple #3
0
 public virtual IContextMenu CreateFor(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(CreateFor(objectRequestingContextMenu.DowncastTo <IObjectBaseDTO>(), presenter));
 }
Exemple #4
0
        public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
        {
            var contextMenu = IoC.Resolve <IContextMenuForBuildingBlock <TBuildingBlock> >();

            return(contextMenu.InitializeWith(viewItem.DowncastTo <BuildingBlockViewItem>(), presenter));
        }
 public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter)
 {
     return(CreateFor(viewItem.DowncastTo <ClassificationNode>(), presenter.DowncastTo <IExplorerPresenter>()));
 }