Пример #1
0
 public DoLaterPresenter(DoLaterCommand applyCommand,
     ISingleSelector<IGtdContext> contextsPresenter,
     IActionDetailsPresenter actionDetailsPresenter,
     IOptionalProjectSelector projectsPresenter)
 {
     Contexts = contextsPresenter;
     Details = actionDetailsPresenter;
     Projects = projectsPresenter;
     _applyCommand = applyCommand;
 }
Пример #2
0
 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);
 }
Пример #4
0
 public TItem ModifySelectedItem <TItem>(ISingleSelector <TItem> selector, TItem item)
     where TItem : class
 {
     return(item);
 }