public DoLaterPresenter(DoLaterCommand applyCommand, ISingleSelector<IGtdContext> contextsPresenter, IActionDetailsPresenter actionDetailsPresenter, IOptionalProjectSelector projectsPresenter) { Contexts = contextsPresenter; Details = actionDetailsPresenter; Projects = projectsPresenter; _applyCommand = applyCommand; }
public DoLaterPresenter(DoLaterCommand applyCommand, ISingleSelector <IGtdContext> contextsPresenter, IActionDetailsPresenter actionDetailsPresenter, IOptionalProjectSelector projectsPresenter) { Contexts = contextsPresenter; Details = actionDetailsPresenter; Projects = projectsPresenter; _applyCommand = applyCommand; }
public TItem ModifySelectedItem <TItem>(ISingleSelector <TItem> selector, TItem item) where TItem : class { if (item == null) { IModelPresenter <TItem> firstPresenter = selector.Screens.Cast <IModelPresenter <TItem> >().FirstOrDefault(); if (firstPresenter != null) { return(firstPresenter.Model); } } return(item); }
public TItem ModifySelectedItem <TItem>(ISingleSelector <TItem> selector, TItem item) where TItem : class { return(item); }