public Category(Product.ProductCategory category_, List <CategorySubType> categorySubTypes) { // Startup constructor, default settings category = category_; visibleState = VisibleState.notVisible; subCategories = categorySubTypes; collapsed = false; }
public Category GetCategory(Product.ProductCategory categoryIn) { foreach (Category category in categories) { if (category.category == categoryIn) { return(category); } } return(null); }