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