// Добавление нового задания private void Menu_Edit_AddTask_Click(object sender, RoutedEventArgs e) { TaskEditWindow taskEditWindow = new TaskEditWindow(this); taskEditWindow.ShowDialog(); }
public void EditSelectedTask(MyTask task) { if (m_Tasks != null && m_Tasks.Count > 0 && task != null) { TaskEditWindow taskEditWindow = new TaskEditWindow(this, task); taskEditWindow.ShowDialog(); } else { MessageBox.Show("Нечего редактировать."); } }