18 using erminas.SmartAPI.Utils;
20 namespace erminas.SmartAPI.CMS
27 string Example {
get; }
29 bool IsDateFormat {
get; }
30 bool IsDateTimeFormat {
get; }
31 bool IsTimeFormat {
get; }
32 bool IsUserDefined {
get; }
60 Name = xmlElement.GetAttributeValue(
"name");
61 TypeId =
int.Parse(xmlElement.GetAttributeValue(
"type"));
62 Example = xmlElement.GetAttributeValue(
"example");
63 _formatTypes = dateTimeFormatTypes;
68 Name =
"user defined";
71 _formatTypes = dateTimeFormatTypes;
77 public string Example {
get;
private set; }
79 public bool IsDateFormat
84 public bool IsDateTimeFormat
89 public bool IsTimeFormat
98 public bool IsUserDefined
102 return this == USER_DEFINED_DATE_FORMAT ||
this == USER_DEFINED_DATE_TIME_FORMAT ||
103 this == USER_DEFINED_TIME_FORMAT;
110 public string Name {
get;
private set; }
115 public int TypeId {
get;
private set; }