private void CloseMessageBox(object sender, EventArgs e) { if (Pages.MessageBox.isOkay) { MessageBox.Children.Clear(); Frejm.Navigate(new Uri("/Pages/MedicalRecord/Informations.xaml", UriKind.Relative)); } else { MessageBox.Children.Clear(); } }
private void ButtonList_SelectionChanged(object sender, SelectionChangedEventArgs e) { int index; if (demoOn) { index = 1; } else { index = ButtonList.SelectedIndex; } if (index != -1) { if (buttoni[index].appointment.patient.record.MedicalRecord.Patient.ProfileImage != null) { Profile.Source = new BitmapImage(new Uri(buttoni[0].appointment.patient.record.MedicalRecord.Patient.ProfileImage, UriKind.Relative)); } FullName.Text = buttoni[index].appointment.FullName; DateAppointment.Text = buttoni[index].appointment.Date.ToString("dd.MM.yyyy."); StringTime.Text = buttoni[index].appointment.timeString; Record_Number.Text = buttoni[index].appointment.patient.record.MedicalRecord.IdRecord.ToString(); Gender.Text = buttoni[index].appointment.Gender; ID_Number.Text = buttoni[index].appointment.patient.record.MedicalRecord.Patient.IdentificationNumber; DateOfBirth.Text = buttoni[index].appointment.patient.record.MedicalRecord.Patient.DateOfBirth.ToString("dd.MM.yyyy."); Curr_Residence.Text = buttoni[index].appointment.patient.record.MedicalRecord.Patient.CurrResidence.City.Name; State.Text = buttoni[index].appointment.patient.record.MedicalRecord.Patient.CurrResidence.City.State.Name; MedicalRecord.Informations.currentRecord = buttoni[index].appointment.patient.record; MyEvents.ChangeInformation.RaiseMyCustomEvent(this, new MyEvents.PatientSelectionChanged()); currentExamination = buttoni[index]; currentExamination.record = buttoni[index].appointment.patient.record; recordDemo = buttoni[index].appointment.patient.record; Frejm.Navigate(new Uri("/Pages/MedicalRecord/Informations.xaml", UriKind.Relative)); } }
private void Vaccines_Click(object sender, RoutedEventArgs e) { Frejm.Navigate(new Uri("/Pages/MedicalRecord/Vaccines.xaml", UriKind.Relative)); }
private void HospitalTreatment_Click(object sender, RoutedEventArgs e) { Frejm.Navigate(new Uri("/Pages/MedicalRecord/HospitalTreatment.xaml", UriKind.Relative)); }
private void SpecialistsExam_Click(object sender, RoutedEventArgs e) { Frejm.Navigate(new Uri("/Pages/MedicalRecord/SpecialistsExam.xaml", UriKind.Relative)); }
private void Prescription_Click(object sender, RoutedEventArgs e) { Frejm.Navigate(new Uri("/Pages/MedicalRecord/Prescription.xaml", UriKind.Relative)); }