コード例 #1
0
 private void CleanupBrowser()
 {
     if (this.myBrowser != null)
     {
         this.myBrowser.Dispose();
         this.myBrowser = null;
     }
 }
コード例 #2
0
        private void SignInButton_Click(object sender, EventArgs e)
        {
            string startUri = this.AuthClient.GetLoginUrl(Scopes);
            string endUri   = "https://login.live.com/oauth20_desktop.srf";

            this.myBrowser = new MyBrowser(startUri, endUri, this.OnAuthCompleted);
            this.myBrowser.Show();
            this.myBrowser.MyBrowser_Load();
        }