void OnErrorRaised(CheckBoxControlEventArgs e) { if (oError != null) { oError(e); } }
protected override void OnClick(EventArgs e) { string message = CheckSecurityPermission(GroupUniqueID); if (message == string.Empty) { base.OnClick(e); } else { this.Checked = false; CheckBoxControlEventArgs cnt = new CheckBoxControlEventArgs(); cnt.ErrorMessage = message; if (oError != null) { this.oError(cnt); } } }