private void RemoveTaskHandler(object sender, DelegateCommandEventArgs e) { if (SelectedTask != null) { tasksRepository.Remove(SelectedTask.Key); SelectedItem = null; UpdateTasks(); } }
private void CreateTaskHandler(object sender, DelegateCommandEventArgs eventArgs) { var task = new Task(TaskName, Executors); if (ParentTask != null) { ParentTask.AddSubtask(task); } tasksRepository.Add(task); view.Close(); }
private void AddTaskHandler(object sender, DelegateCommandEventArgs e) { AddTask(SelectedTask); }
private void AddTaskToRootHandler(object sender, DelegateCommandEventArgs e) { AddTask(null); }