20 lines
574 B
C#
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;
|
|
}
|
|
}
|
|
}
|