fix(checkedListBox): поправил свойство для установки checked items
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<Authors>ns.potapov</Authors>
|
||||
<VersionPrefix>1.0.5</VersionPrefix>
|
||||
<VersionPrefix>1.0.6</VersionPrefix>
|
||||
<Version>$(VersionPrefix)</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -57,9 +57,12 @@ namespace Components
|
||||
}
|
||||
set
|
||||
{
|
||||
if (checkedListBox.Items.Contains(value))
|
||||
foreach (var item in value)
|
||||
{
|
||||
checkedListBox.SetItemCheckState(checkedListBox.Items.IndexOf(value), CheckState.Checked);
|
||||
if (checkedListBox.Items.Contains(item))
|
||||
{
|
||||
checkedListBox.SetItemCheckState(checkedListBox.Items.IndexOf(item), CheckState.Checked);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user