private void CleanupAuthForm()
 {
     if (this.authForm != null)
     {
         this.authForm.Dispose();
         this.authForm = null;
     }
 }
 private void SigninButton_Click(object sender, EventArgs e)
 {
     if (this.authForm == null)
     {
         string startUrl = this.AuthClient.GetLoginUrl(this.GetAuthScopes());
         string endUrl   = "https://login.live.com/oauth20_desktop.srf";
         this.authForm = new LiveAuthForm(
             startUrl,
             endUrl,
             this.OnAuthCompleted);
         this.authForm.FormClosed += AuthForm_FormClosed;
         this.authForm.ShowDialog(this);
     }
 }
Example #3
0
 private void CleanupAuthForm()
 {
     if (this.authForm != null)
     {
         this.authForm.Dispose();
         this.authForm = null;
     }
 }
Example #4
0
 private void SigninButton_Click(object sender, EventArgs e)
 {
     if (this.authForm == null)
     {
         string startUrl = this.AuthClient.GetLoginUrl(this.GetAuthScopes());
         string endUrl = "https://login.live.com/oauth20_desktop.srf";
         this.authForm = new LiveAuthForm(
             startUrl,
             endUrl,
             this.OnAuthCompleted);
         this.authForm.FormClosed += AuthForm_FormClosed;
         this.authForm.ShowDialog(this);
     }
 }