private void PrepareCustomPropertyField(WebControl label, ListControl list, ItemProperties property) { list.Items.Clear(); if (property == ItemProperties.CustomProperty) { label.ToolTip = "<p>Select the custom property to use.</p>"; list.Items.AddRange(GetPropertyTypes()); list.Visible = true; } else if (property == ItemProperties.Manufacturer || property == ItemProperties.Vendor) { label.ToolTip = string.Format("<p>Select the {0} property to use.</p>", property.ToString().ToLower()); list.Items.AddRange(GetVendorManufacturerProperties()); list.Visible = true; } else { label.ToolTip = ""; list.Items.Add(new ListItem("n/a", "")); list.Visible = false; } }