private void ClickOnlyEvent(object sender, EventArgs e) { if (IsBool) { BoolValue = !BoolValue; BoolChangeEvArgs args = new BoolChangeEvArgs(BoolValue); OnBoolChange(args); } else { OnClickOnly(); } }
protected void OnBoolChange(BoolChangeEvArgs e) { BoolChange(this, e); }