public void CheckRightProperties(ICollection<string> properties)
{
foreach (int idx in chkRightProperties.CheckedIndices)
{
chkRightProperties.SetItemChecked(idx, false);
}
foreach (string prop in properties)
{
int idx = chkRightProperties.Items.IndexOf(prop);
if (idx >= 0)
chkRightProperties.SetItemChecked(idx, true);
}
}