// Method to add new task to the board private void createTaskButton_Click(object sender, RoutedEventArgs e) { // Go back to Main Menu Page and close Create Board Window TaskWindow taskWindow = new TaskWindow(boardID, null, this); // Show Kanban Board Window taskWindow.Top = 100; taskWindow.Left = 400; taskWindow.Show(); }
// Method for editing task private void editTaskButton_Click(object sender, RoutedEventArgs e) { // get taskID int taskID = Convert.ToInt16(((Button)sender).Tag); TaskWindow taskWindow = new TaskWindow(boardID, taskID, this); taskWindow.Owner = Window.GetWindow(this); // Show Kanban Board Window taskWindow.Top = 100; taskWindow.Left = 400; taskWindow.Show(); }