Beispiel #1
0
 private void FillGrid()
 {
     Cursor   = Cursors.WaitCursor;
     icd9List = ICD9s.GetByCodeOrDescription(textCode.Text);
     listMain.Items.Clear();
     for (int i = 0; i < icd9List.Count; i++)
     {
         listMain.Items.Add(icd9List[i].ICD9Code + " - " + icd9List[i].Description);
     }
     Cursor = Cursors.Default;
 }
Beispiel #2
0
 private void FillGrid()
 {
     Cursor   = Cursors.WaitCursor;
     icd9List = ICD9s.GetByCodeOrDescription(textCode.Text);
     icd9List.RemoveAll(x => string.IsNullOrEmpty(x.ICD9Code));            //We have seen some old ICD9 codes with invalid codes.
     listMain.Items.Clear();
     for (int i = 0; i < icd9List.Count; i++)
     {
         listMain.Items.Add(icd9List[i].ICD9Code + " - " + icd9List[i].Description);
     }
     Cursor = Cursors.Default;
 }