private void Button_PatientSearch_Click(object sender, RoutedEventArgs e) { PatientSearch patientSearch = new PatientSearch(); if (patientSearch.ShowDialog() == true) { imageTransferIntoViewModel.TargetPatients = patientSearch.Patients; } }
private void MenuItem_PatientSearch_Click(object sender, RoutedEventArgs e) { PatientSearch patientSearch = new PatientSearch(); if (patientSearch.ShowDialog() == true) { Patients = patientSearch.Patients; MainContent.Content = new PatientInformation(Agencys, Patients); } }