Created
February 14, 2014 14:53
-
-
Save rzaitov/9002349 to your computer and use it in GitHub Desktop.
no way to remove ugly alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public WebAuthenticatorController (WebAuthenticator authenticator) | |
{ | |
this.authenticator = authenticator; | |
authenticator.Error += new EventHandler<AuthenticatorErrorEventArgs> (this.HandleError); | |
authenticator.BrowsingCompleted += new EventHandler (this.HandleBrowsingCompleted); | |
bla bla bla | |
} | |
private void HandleError (object sender, AuthenticatorErrorEventArgs e) | |
{ | |
Action continuation = this.keepTryingAfterError ? new Action (this.BeginLoadingInitialUrl) : new Action (this.Cancel); | |
if (e.Exception != null) | |
{ | |
this.ShowError ("Authentication Error", e.Exception, continuation); | |
return; | |
} | |
this.ShowError ("Authentication Error", e.Message, continuation); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment