Beispiel #1
0
 public EditTaskPresenter(IEditTaskView view, Task task, bool editMode)
 {
     _view = view;
     if (!editMode)
     {
         view.ShowTask(task, _provider.getCurrentUser().role != Projman.Server.User.Types.Role.User, _provider.getCurrentUser().role != Projman.Server.User.Types.Role.User);
     }
     else
     {
         view.ShowTaskInEditMode(task);
     }
 }
Beispiel #2
0
 public void OnEditTaskClick(Task task)
 {
     _view.ShowTaskInEditMode(task);
 }