Ejemplo n.º 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);
    }
Ejemplo n.º 2
0
    private ListItem[] GetItemProperties()
    {
        List <ListItem> properties = new List <ListItem>();

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