示例#1
0
        public virtual void AddObject(object newObject)
        {
            if (newObject == null) return;
            string objectName = newObject.GetType().FullName;
            if (Classes.ContainsKey(objectName))
            {
                ClassDefinition definition = Classes[objectName];
                foreach (FieldDefinition field in definition.Fields.Values)
                {
                    int index = Fields.IndexOf(field);
                    if (Data.ContainsKey(index))
                        Data[index] = new DataField(this, field, newObject);
                    else
                        Data.Add(index, new DataField(this, field, newObject));

                    Data[index].DataObject = newObject;
                }
            }
        }
示例#2
0
 public virtual bool CheckMinMax(DataField val)
 {
     return true;
 }
示例#3
0
 public virtual bool CheckMinMax(DataField val)
 {
     return(true);
 }