Beispiel #1
0
        private void AddTaskButton_Click(object sender, RoutedEventArgs e)
        {
            TaskWindow TaskWin = new TaskWindow(this.service, boardName);

            TaskWin.Show();
            this.Close();
        }
 private void EditTask_Click(object sender, RoutedEventArgs e)
 {
     if (boardDataContext.Selected != null)
     {
         TaskWindow task = new TaskWindow(service, boardDataContext.Selected.Id);
         task.Show();
         Close();
     }
     else
     {
         MessageBox.Show("Please select a task you want to edit.");
         Log.Warn("User tried to edit a task without choosing one.");
     }
 }