Beispiel #1
0
    private static void PrepareValueField(Control multiplier, Label label, Control field, WebControl requiredValidator,
                                          WebControl numericValidator, ItemProperties property)
    {
        PropertyTypes propertyType = ItemPropertiesHelper.GetPropertyType(property);

        PrepareValueField(multiplier, label, field, requiredValidator, numericValidator, propertyType);
    }
Beispiel #2
0
    private ListItem[] GetItemProperties()
    {
        List <ListItem> properties = new List <ListItem>();

        foreach (ItemProperties property in Enum.GetValues(typeof(ItemProperties)))
        {
            if (!hiddenItemProperties.IsMatch(property.ToString()))
            {
                if (ItemPropertiesHelper.GetPropertyType(property) != PropertyTypes.Alphabetic)
                {
                    properties.Add(new ListItem(ItemPropertiesHelper.GetDisplayName(property), property.ToString()));
                }
            }
        }
        return(properties.ToArray());
    }