private void ListImageBox_Click(object sender, EventArgs e) { StartSelection = -1; UnSelectItems(); if (ItemDeSlect != null) { ItemDeSlect.Invoke(null, null); } }
private void SelectItem(int index, bool bModfier) { if (Items.Count == 0) { return; } if (bModfier) { UnSelectItems(); } _selectedItem = Items[index]; _selectedIndex = index; if (mode == ThumbMode.Condensed && !(Items[index]._Controls).Visible) { Expand((Items[index]._Controls).Parent as GroupBox); } Items[index].Selected = !Items[index].Selected || bModfier; if (SelectedItems.Count == 0) { _selectedIndex = -1; _selectedItem = null; if (ItemDeSlect != null) { ItemDeSlect.Invoke(null, null); } } else if (SelectedIndexChanged != null) { SelectedIndexChanged.Invoke(null, null); } }