public void AddGroup(string groupId, string groupText, Image selected, Image unselected) { ExpandableGroup group = new ExpandableGroup(); group.Dock = DockStyle.Top; group.Configure(groupText, selected, unselected); group.ButtonLabelClicked += group_ButtonLabelClicked; this.items.Add(groupId, group); this.Controls.Add(group); }
private void getSelectedFromGroup(ExpandableGroup group) { foreach (BigButton bigButton in group.Items) { if (bigButton.IsSelected) { this.SelectedItems.Add(bigButton.KeyId); } } }