/// <summary> /// Edits the task /// </summary> private void Edit() { logger.Info("Displaying edit task dialog"); AddNewTaskDialog dialog = new AddNewTaskDialog(); this.container.ComposeParts(dialog); dialog.TaskData.Task = new PlayerTask(this.Task); dialog.TaskData.HasLocation = this.Task.Location != null; dialog.Show(); }
/// <summary> /// Adds a new task to the collection of tasks /// </summary> private void AddNewTask() { logger.Info("Displaying add new task dialog"); AddNewTaskDialog dialog = new AddNewTaskDialog(); this.container.ComposeParts(dialog); dialog.Show(); }