Ejemplo n.º 1
0
 private void FillStatistic()
 {
     {
         List <string> statistics = bllMember.GetStatistic(member);
         labelControlAttendedAppointment.Text    = statistics[0];
         labelControlMedicineCount.Text          = statistics[1];
         labelControlCancelledAppointment.Text   = statistics[2];
         labelControlNotAttendedAppointment.Text = statistics[3];
         if (statistics[4] == "0")
         {
             labelControlDoctorAgeRange.Text = "N/A";
         }
         else
         {
             labelControlDoctorAgeRange.Text = statistics[4];
         }
         if (statistics[5] == "0")
         {
             labelControlOldestDoctorAge.Text   = "N/A";
             labelControlYoungestDoctorAge.Text = "N/A";
         }
         else
         {
             labelControlOldestDoctorAge.Text   = statistics[5];
             labelControlYoungestDoctorAge.Text = statistics[6];
         }
     }
 }