private void AddBtn_Click(object sender, RoutedEventArgs e)
        {
            AddTask addTask = new AddTask();

            addTask.Owner = this;

            if (addTask.ShowDialog() == true)
            {
                db.Add(addTask.CurrentlyFocusedTask);
                taskList.Add(addTask.CurrentlyFocusedTask);

                TaskList.Items.Refresh();
            }
        }
Exemplo n.º 2
0
 public bool Add(MainTask mainTask)
 {
     return(_mainTaskRepository.Add(mainTask) > 0);
 }