Skip to content

Instantly share code, notes, and snippets.

@christopherhouse
Last active December 16, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopherhouse/5489258 to your computer and use it in GitHub Desktop.
Save christopherhouse/5489258 to your computer and use it in GitHub Desktop.
ViewDidLoad for WAMSAuthDemo, wires up buttons to login method
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
// Perform any additional setup after loading the view, typically from a nib.
this.MicrosoftLoginButton.TouchUpInside += (sender, e) => {
this.DoLogin(MobileServiceAuthenticationProvider.MicrosoftAccount);
};
this.FacebookLoginButton.TouchUpInside += (sender, e) => {
this.DoLogin(MobileServiceAuthenticationProvider.Facebook);
};
this.TwitterLoginButton.TouchUpInside += (sender, e) => {
this.DoLogin(MobileServiceAuthenticationProvider.Twitter);
};
this.GoogleLoginButton.TouchUpInside += (sender, e) => {
this.DoLogin(MobileServiceAuthenticationProvider.Google);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment