/// <summary> /// Load up page to view patient profile /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void viewPatient(object sender, RoutedEventArgs e) { Button b = sender as Button; PatientHolder account = b.CommandParameter as PatientHolder; subparent.loadPatientInfo(account.ID, "profile"); }
/// <summary> /// Load profile of patient /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void loadprofile(object sender, MouseButtonEventArgs e) { ListViewItem itm = sender as ListViewItem; AppointmentHolder appointment = itm.Content as AppointmentHolder; subparent.loadPatientInfo(appointment.PatientID, "appointment"); }
public void loadprofile(object sender, MouseButtonEventArgs e) { ListViewItem itm = sender as ListViewItem; ScheduleHolder schedule = itm.Content as ScheduleHolder; subparent.loadPatientInfo(schedule.PatientID, "appointment"); }
/// <summary> /// Load profile of patient /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void loadprofile(object sender, MouseButtonEventArgs e) { ListViewItem itm = sender as ListViewItem; SearchHolder search = itm.Content as SearchHolder; subparent.loadPatientInfo(search.ID, "profile"); this.Close(); }