Esempio n. 1
0
 private void FormDisplayFields_Load(object sender, EventArgs e)
 {
     labelCategory.Text = Category.ToString();
     DisplayFields.RefreshCache();
     ListShowing = DisplayFields.GetForCategory(Category);
     if (Category == DisplayFieldCategory.ChartPatientInformation &&
         !PrefC.GetBool(PrefName.ShowFeatureEhr) &&
         ListShowing.Any(x => x.InternalName == "Tobacco Use"))
     {
         //user may have enable EHR features, added the tobacco use display field, and then disabled EHR features, remove the tobacco use display field
         ListShowing.RemoveAll(x => x.InternalName == "Tobacco Use");
         changed = true;
     }
     FillGrids();
 }
Esempio n. 2
0
 private void FormDisplayFields_Load(object sender, EventArgs e)
 {
     labelCategory.Text       = category.ToString();
     textCustomField.Visible  = false;
     labelCustomField.Visible = false;
     listAvailable.Height     = 412;
     DisplayFields.RefreshCache();
     ListShowing = DisplayFields.GetForCategory(category);
     if (category == DisplayFieldCategory.OrthoChart)
     {
         textCustomField.Visible  = true;
         labelCustomField.Visible = true;
         listAvailable.Height     = 227;          //227px for short, 412px for tall
         labelAvailable.Text      = Lan.g(this, "Previously Used Fields");
     }
     FillGrids();
 }