public void Save(CheckedListBox clbVisibilityToUsers) { if (clbVisibilityToUsers != null) { clbVisibilityToUsers.DoThreadSafe(() => { for (int i = 0; i < clbVisibilityToUsers.Items.Count; i++) { SINerUserRight obj = (SINerUserRight)clbVisibilityToUsers.Items[i]; clbVisibilityToUsers.SetItemChecked(i, obj.CanEdit.Value); } }); } }