Esempio n. 1
0
 private void FormDiseaseEdit_Load(object sender, EventArgs e)
 {
     // Fill problem/icd9 - only one will exist (with a value not zero).
     if (DiseaseCur.DiseaseDefNum != 0)
     {
         textProblem.Text = DiseaseDefs.GetItem(DiseaseCur.DiseaseDefNum).DiseaseName;
     }
     else
     {
         textIcd9.Text = ICD9s.GetOne(DiseaseCur.ICD9Num).Description;
     }
     comboStatus.Items.Clear();
     for (int i = 0; i < Enum.GetNames(typeof(ProblemStatus)).Length; i++)
     {
         comboStatus.Items.Add(Enum.GetNames(typeof(ProblemStatus))[i]);
     }
     comboStatus.SelectedIndex = (int)DiseaseCur.ProbStatus;
     textNote.Text             = DiseaseCur.PatNote;
     if (DiseaseCur.DateStart.Year > 1880)
     {
         textDateStart.Text = DiseaseCur.DateStart.ToShortDateString();
     }
     if (DiseaseCur.DateStop.Year > 1880)
     {
         textDateStop.Text = DiseaseCur.DateStop.ToShortDateString();
     }
 }