private void lstTasks_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (lstTasks.SelectedItem != null) { Business_TaskListModel model = (Business_TaskListModel)lstTasks.SelectedItem; TaskDetailsWindow window = new TaskDetailsWindow(model.TaskID); window.Show(); } }
private void miAddTask_Click(object sender, RoutedEventArgs e) { TaskDetailsWindow window = new TaskDetailsWindow(); window.Show(); }