示例#1
0
 public void FieldFindRemove(string id)
 {
     if (!string.IsNullOrEmpty(id))
     {
         lock (_hfields.SyncRoot)
         {
             FindValueItem fi = (FindValueItem)_hfields[id];
             _hfields.Remove(id);
             if (fi != null)
             {
                 _afields.Remove(fi);
             }
         }
     }
 }
示例#2
0
        public void FieldFindAdd(string id, string caption, Type type, object defaultvalue)
        {
            FindValueItem fi = new FindValueItem();

            fi._id        = id;
            fi._caption   = caption;
            fi._valuetype = type;
            fi._value     = defaultvalue;

            lock (_hfields.SyncRoot)
            {
                _hfields[id] = fi;
                _afields.Add(fi);
            }
        }