fix for lab3

This commit is contained in:
Никита Волков 2024-11-10 16:43:20 +04:00
parent 66702ee864
commit 45e5a8066c

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);
}
}
}