public void NewTask()
        {
            TaskNewEditFormController preparer = new TaskNewEditFormController(new Task());

            preparer.PrepareWindow();
            if (preparer.ChangesMade)
            {
                _tasks.Add(preparer.Task);
            }
        }
        public void EditTask()
        {
            if (SelectedTasks.Count == 0)
            {
                return;
            }
            TaskNewEditFormController preparer = new TaskNewEditFormController(SelectedTasks[0]);

            //preparer.Window.Closed += delegate { LoadTasks(); };
            preparer.PrepareWindow();
        }
 public void NewTask()
 {
     TaskNewEditFormController preparer = new TaskNewEditFormController(new Task());
     preparer.PrepareWindow();
     if (preparer.ChangesMade)
         _tasks.Add(preparer.Task);
 }
 public void EditTask()
 {
     if (SelectedTasks.Count == 0)
         return;
     TaskNewEditFormController preparer = new TaskNewEditFormController(SelectedTasks[0]);
     //preparer.Window.Closed += delegate { LoadTasks(); };
     preparer.PrepareWindow();
 }
 public void EditTask()
 {
     var preparer = new TaskNewEditFormController(this.Task);
     preparer.PrepareWindow();
     _window.Close();
 }