Example #1
0
        /// <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();

            dialog.TaskData = this.newTaskViewModel;
            dialog.Show();
        }
Example #2
0
        /// <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();
        }
Example #3
0
        /// <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();
        }