private void CheckBoxFlagsCheckChanged(object sender, EventArgs e)
{
if (SuppressEvents) return;
var checkBox = sender as CheckBox;
if (checkBox != null)
{
string propertyName = checkBox.Tag.ToString();
typeof(State).GetProperty(propertyName).SetValue(this._state, checkBox.Checked, null);
}
}