Example #1
0
 public WebDataEditorList(IWebDataEditorsHolder fields)
 {
     _fields = fields;
     for (int i = 0; i < _fields.FieldCount; i++)
     {
         WebDataEditorNone none = new WebDataEditorNone();
         none.ValueField = _fields.GetFieldNameByIndex(i);
         none.SetHolder(fields);
         this.Add(none);
     }
 }
Example #2
0
 public void ReSetEditorByName(string name)
 {
     for (int i = 0; i < this.Count; i++)
     {
         if (string.Compare(this[i].ValueField, name, StringComparison.OrdinalIgnoreCase) == 0)
         {
             this[i] = new WebDataEditorNone();
             this[i].SetHolder(_fields);
             break;
         }
     }
 }