using System; namespace umbraco.editorControls.numberfield { /// /// Summary description for DataInteger. /// public class DataInteger : cms.businesslogic.datatype.DefaultData { public DataInteger(cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) {} public override void MakeNew(int PropertyId) { this.PropertyId = PropertyId; string defaultValue = ((DefaultPrevalueEditor) _dataType.PrevalueEditor).Prevalue; if (defaultValue.Trim() != "") this.Value = defaultValue; } } }