Exemple #1
0
        public void SanitizePropertyReference(AbstractProperty property, string newReferenceName)
        {
            if (string.IsNullOrEmpty(newReferenceName))
            {
                return;
            }

            var name = newReferenceName.Trim();

            if (string.IsNullOrEmpty(name))
            {
                return;
            }

            property.OverrideReferenceName = DlogUtility.SanitizeName(properties.Where(prop => prop.GUID != property.GUID).Select(prop => prop.ReferenceName), "{0} ({1})", name);
        }
Exemple #2
0
 public void SanitizePropertyName(AbstractProperty property)
 {
     property.DisplayName = property.DisplayName.Trim();
     property.DisplayName = DlogUtility.SanitizeName(properties.Where(prop => prop.GUID != property.GUID).Select(prop => prop.DisplayName), "{0} ({1})", property.DisplayName);
 }