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); } }
public void OnEditTaskClick(Task task) { _view.ShowTaskInEditMode(task); }