From de54e31c8ba8d56652ca14953d2da94db618c8f7 Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Tue, 22 Oct 2024 23:14:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyCustomComponents/CustomSelectedCheckedListBoxProperty.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {