Files
Umbraco-CMS/components/editorControls/numberfield/DataInteger.cs
Shandem f6d0d043b5 DO NOT DOWNLOAD. DOWNLOAT LATEST STABLE FROM RELEASE TAB
Created 4.1.0 branch

[TFS Changeset #55082]
2009-06-19 07:39:16 +00:00

20 lines
574 B
C#

using System;
namespace umbraco.editorControls.numberfield
{
/// <summary>
/// Summary description for DataInteger.
/// </summary>
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;
}
}
}