17 using System.Text.RegularExpressions;
19 using erminas.SmartAPI.CMS.Project.ContentClasses.Elements;
21 namespace erminas.SmartAPI.CMS.Project.Pages.Elements
30 private static Regex _emailVerificationRegex =
new Regex(
"^[^@]+@[^@]+$");
32 internal StandardFieldEmail(
IProject project, XmlElement xmlElement) : base(project, xmlElement)
38 : base(project, guid, languageVariant)
42 protected override string FromString(
string value)
44 if (!_emailVerificationRegex.IsMatch(value))
46 throw new ArgumentException(
string.Format(
"Invalid email adress: {0}", value));
51 protected override void LoadWholeStandardField()
56 private void LoadXml()