예제 #1
0
        public void NewTask()
        {
            TaskNewEditFormController preparer = new TaskNewEditFormController(new Task());

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

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