private void Button_Click(object sender, RoutedEventArgs e) { // добавить var form = new DoctorAdd(); form.Show(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { var doctor = ListDoctors.SelectedItem as Doctors; if (doctor != null) { var form = new DoctorAdd(doctor); form.Show(); } }