diff --git a/Lab 2/Belianin_2/MyCustomComponents/CustomSelectedCheckedListBoxProperty.cs b/Lab 2/Belianin_2/MyCustomComponents/CustomSelectedCheckedListBoxProperty.cs index 43999dd..cb6accc 100644 --- a/Lab 2/Belianin_2/MyCustomComponents/CustomSelectedCheckedListBoxProperty.cs +++ b/Lab 2/Belianin_2/MyCustomComponents/CustomSelectedCheckedListBoxProperty.cs @@ -54,7 +54,7 @@ namespace MyCustomComponents { get { - return (checkedListBox.SelectedIndex > -1 && checkedListBox.GetItemChecked(checkedListBox.SelectedIndex)) ? checkedListBox.SelectedIndex.ToString() : string.Empty; + return (checkedListBox.SelectedIndex > -1 && checkedListBox.GetItemChecked(checkedListBox.SelectedIndex)) ? checkedListBox.SelectedItem.ToString() : string.Empty; } set {