void client1_SeePatientDataCompleted(object sender, SeePatientDataCompletedEventArgs e) { //throw new NotImplementedException(); if (e.Result != null) { NavigationService.Navigate(new Uri("/DataDisplayPage.xaml?msg=" + SSN_field.Text, UriKind.RelativeOrAbsolute)); } else MessageBox.Show("SSN does not exist"); }
void client1_SeePatientDataCompleted(object sender, SeePatientDataCompletedEventArgs e) { //throw new NotImplementedException(); if (e.Result != null) { SSN.Text = e.Result.SSN; Name.Text = e.Result.Name; DOB.Text = e.Result.DOB.ToString(); Gender.Text = e.Result.Gender; Address.Text = e.Result.Address; Nationality.Text = e.Result.Nationality; PhoneNumber.Text = e.Result.PhoneNumber; LegalStatus.Text = e.Result.LegalStatus; Insurance.Text = e.Result.MedicalInsurance; NextOfKin.Text = e.Result.NextOfKin; } else MessageBox.Show("Unable to retrieve data"); }