static private List <BubbleType> GetTypeGroup(BubbleFactory factory, BubbleCategory category) { return(factory.Bubbles .Where(b => b.category == category) .Select(d => d.Type) .Where(t => (int)t >= 0) .ToList()); }
private void CreateCategoryButton(BubbleCategory category) { CreateToggleButton(category.ToString(), GetOrCreatePanel(category.ToString())); }