private void CleanupBrowser() { if (this.myBrowser != null) { this.myBrowser.Dispose(); this.myBrowser = null; } }
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(); }