public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(createFor(viewItem.DowncastTo <ReactionPartnerBuilderDTO>(), presenter.DowncastTo <IReactionProductsPresenter>())); }
public IContextMenu CreateFor(IViewItem viewItem, IPresenterWithContextMenu <IViewItem> presenter) { return(CreateFor(viewItem.DowncastTo <TransportBuilderDTO>(), presenter.DowncastTo <TPresenter>())); }
public virtual IContextMenu CreateFor(IViewItem objectRequestingContextMenu, IPresenterWithContextMenu <IViewItem> presenter) { return(CreateFor(objectRequestingContextMenu.DowncastTo <IObjectBaseDTO>(), presenter)); }
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>())); }