void OnErrorRaised(TextBoxControlEventArgs e) { if (oError != null) { oError(e); } }
protected override void OnKeyPress(KeyPressEventArgs e) { string message = CheckSecurityPermission(GroupUniqueID); if (message == string.Empty) { base.OnKeyPress(e); } else { e.Handled = true; TextBoxControlEventArgs cnt = new TextBoxControlEventArgs(); cnt.ErrorMessage = message; if (oError != null) { this.oError(cnt); } } }