public ToDoListWindow(User user, BoardTaskStatusNinject ninject) { InitializeComponent(); _currentNinjects = ninject; _taskService = ninject.TaskService; _boardService = ninject.BoardService; _statusService = ninject.StatusService; _currentUser = user; }
public MainWindow(IUserService userService, IUserRoleService userRoleService, ITaskService taskService, IBoardService boardService, IStatusService statusService) { InitializeComponent(); _currentNinjects = new BoardTaskStatusNinject(); _currentNinjects.BoardService = boardService; _currentNinjects.TaskService = taskService; _currentNinjects.StatusService = statusService; _userService = userService; _userRoleService = userRoleService; _taskService = taskService; _boardService = boardService; _statusService = statusService; }
public AddTaskWindow(User user, bool taskDetails, Task task, bool editTask, BoardTaskStatusNinject ninject) { InitializeComponent(); _boardService = ninject.BoardService; _statusService = ninject.StatusService; _taskService = ninject.TaskService; _currentUser = user; if (taskDetails) { btnAdd.Visibility = Visibility.Hidden; _taskDetails = taskDetails; _currentTask = task; } if (editTask) { btnAdd.Content = "Edit Task"; rdbDoing.Visibility = Visibility.Visible; rdbDone.Visibility = Visibility.Visible; _editTask = editTask; _currentTask = task; } }