Exemple #1
0
 private void FillGrid()
 {
     ApptFieldDefs.RefreshCache();
     _listApptFieldDefs = ApptFieldDefs.GetDeepCopy();
     listMain.Items.Clear();
     for (int i = 0; i < _listApptFieldDefs.Count; i++)
     {
         listMain.Items.Add(_listApptFieldDefs[i].FieldName);
     }
 }
 private void FormFieldDefLink_Load(object sender, EventArgs e)
 {
     string[] arrayFieldLocations = Enum.GetNames(typeof(FieldLocations));
     for (int i = 0; i < arrayFieldLocations.Length; i++)
     {
         comboFieldLocation.Items.Add(Lan.g("enumFieldLocations", arrayFieldLocations[i]));
         if (i == (int)_fieldLocation)
         {
             comboFieldLocation.SelectedIndex = i;
         }
     }
     _listFieldDefLinks = FieldDefLinks.GetAll();
     _listApptFieldDefs = ApptFieldDefs.GetDeepCopy();
     _listPatFieldDefs  = PatFieldDefs.GetDeepCopy(true);
     FillGridDisplayed();
     FillGridHidden();
 }