private void ValidatePropertySet(bool doNotifyChanges) { if (InnerItem.PropertySet == null || string.IsNullOrEmpty(InnerItem.PropertySet.PropertySetId)) { InnerItem.SetError("PropertySet", "PropertySet error".Localize(), doNotifyChanges); } else { InnerItem.ClearError("PropertySet"); } }
private void ValidateCurrencies(bool doNotifyChanges) { if (InnerItem.Currencies.Count == 0) { InnerItem.SetError("Currencies", "external validation error".Localize(), doNotifyChanges); } else { InnerItem.ClearError("Currencies"); } }
private void ValidateDefaultCurrency(bool doNotifyChanges) { if (string.IsNullOrEmpty(InnerItem.DefaultCurrency)) { InnerItem.SetError("DefaultCurrency", "Field 'Default Currency' is required.".Localize(), doNotifyChanges); } else { InnerItem.ClearError("DefaultCurrency"); } }
private void ValidateDefaultLanguage(bool doNotifyChanges) { if (string.IsNullOrEmpty(InnerItem.DefaultLanguage) || InnerItem.DefaultLanguage.StartsWith("Select")) { InnerItem.SetError("DefaultLanguage", "Field 'Default Language' is required.".Localize(), doNotifyChanges); } else { InnerItem.ClearError("DefaultLanguage"); } }