Esempio n. 1
0
 private void BtnDisplay_Click(object sender, RoutedEventArgs e)
 {
     saveList.Clear();
     ReadFromXML();
     Applist.Clear();
     for (int i = 0; i < saveList.Count(); i++)
     {
         Patient   patient    = saveList[i].Patient;
         MyPatient newPatient = new MyPatient();
         newPatient.Age              = patient.Age;
         newPatient.Time             = patient.Time;
         newPatient.Gender           = patient.Gender;
         newPatient.MedicalCondition = patient.MedicalCondition;
         newPatient.CtXray           = patient.CtXray;
         newPatient.Treatment        = patient.Treatment;
         newPatient.CreditCard       = patient.CreditCard;
         Applist.Add(newPatient);
         TimeList.Remove(patient.Time);
     }
     MyGrid.ItemsSource = Applist;
 }