fix(checkedListBox): поправил свойство для установки checked items
This commit is contained in:
parent
6c60e093cc
commit
315c6f7249
@ -7,7 +7,7 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
<Authors>ns.potapov</Authors>
|
<Authors>ns.potapov</Authors>
|
||||||
<VersionPrefix>1.0.5</VersionPrefix>
|
<VersionPrefix>1.0.6</VersionPrefix>
|
||||||
<Version>$(VersionPrefix)</Version>
|
<Version>$(VersionPrefix)</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -57,9 +57,12 @@ namespace Components
|
|||||||
}
|
}
|
||||||
set
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user