// Wrap event invocations inside a protected virtual method // to allow derived classes to override the event invocation behavior protected virtual void RaiseOnNRICFailedEvent(NRICEventArgs e) { OnNRICFailed?.Invoke(this, e); }
private void JSCallCS_OnNRICFailed(object sender, NRICEventArgs e) { //MessageBox.Show(e.Message, "Authentication failed", MessageBoxButtons.OK, MessageBoxIcon.Error); //LayerWeb.ShowMessage("Authentication failed", e.Message); CSCallJS.ShowMessage(LayerWeb, "Authentication Failed", e.Message); }