Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void CheckAccessorylist(CheckedListBox choosedCheckedListbox, List<string[]> valuesForChecking)
- {
- UncheckAllCheckedListBox(choosedCheckedListbox);
- for (int i = 0; i < choosedCheckedListbox.Items.Count; i++)
- {
- for (int j = 0; j < valuesForChecking.Count; j++)
- {
- for (int k = 0; k < valuesForChecking[j][k].Length; k++)
- if (choosedCheckedListbox.Items[i].ToString() == valuesForChecking[j][k])
- {
- choosedCheckedListbox.SetItemCheckState(j, CheckState.Checked);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment