18 using erminas.SmartAPI.CMS.Project.ContentClasses.Elements;
20 namespace erminas.SmartAPI.CMS.Project.Pages.Elements
29 internal StandardFieldNumeric(
IProject project, XmlElement xmlElement) : base(project, xmlElement)
34 : base(project, guid, languageVariant)
38 public override string Value
42 if (!
string.IsNullOrEmpty(value) && !StandardFieldUserDefined.NUMERIC_CHECK_REGEX.IsMatch(value))
44 throw new ArgumentException(
string.Format(
"'{0}' is not a valid numeric value", value));
50 protected override string FromString(
string value)
52 if (StandardFieldUserDefined.NUMERIC_CHECK_REGEX.IsMatch(value))
57 throw new ArgumentException(
string.Format(
"Not a valid numerical value: {0}", value), value);
60 protected override void LoadWholeStandardField()