public static int RegisterProperty(IProperty property) { int uniqueSortValue = PropertySortValue.GetUniqueSortValue(property.UniqueName, 1); PropertySortValue.sortValues.Add(uniqueSortValue); return(uniqueSortValue); }
public static int RegisterDesignTimeProperty(IPropertyId property) { int uniqueSortValue = PropertySortValue.GetUniqueSortValue(string.Concat("__BLEND", property.Name), PropertySortValue.DesignTimeSeedSortValue); PropertySortValue.sortValues.Add(uniqueSortValue); return(uniqueSortValue); }
public UnknownMember(IType declaringType, Microsoft.Expression.DesignModel.Metadata.MemberType memberType, string propertyName) : base(declaringType, propertyName) { this.memberType = memberType; this.sortValue = PropertySortValue.RegisterProperty(this); }
protected Property(IType declaringType, string name, IType propertyType, int sortValue) : base(declaringType, name) { this.propertyType = propertyType; this.sortValue = (sortValue == PropertySortValue.NoValue ? PropertySortValue.RegisterProperty(this) : sortValue); }