private void Choose_Click(object sender, RoutedEventArgs e) { if (ResSet.SelectedItem != null) { PATIENT p = (PATIENT)ResSet.SelectedItem; NewVisit wind = new NewVisit(p); wind.Show(); Close(); } else { MessageBox.Show("Выберите пациента"); } }
private void NewVisit_Click(object sender, RoutedEventArgs e) { NewVisit wind = new NewVisit(user, currentPatient, datetime1); wind.ShowDialog(); }