fix for lab3

This commit is contained in:
Никита Волков 2024-11-10 16:43:20 +04:00
parent fb17f2b58d
commit 4c409b841d

View File

@ -63,7 +63,9 @@ namespace WinFormsLibraryVolkov
{
if (checkedListBox.Items.Contains(value))
{
int selectedIndex = checkedListBox.Items.IndexOf(value);
checkedListBox.SelectedItem = value;
checkedListBox.SetItemChecked(selectedIndex, true);
}
}
}