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; } } }
public virtual bool CheckMinMax(DataField val) { return true; }
public virtual bool CheckMinMax(DataField val) { return(true); }