日期:2014-05-17 浏览次数:20843 次
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (e.Url.AbsoluteUri.StartsWith(m_xxxxx.m_strRedirect_uri))
{
m_xxxxx.set(e.Url.AbsoluteUri);
DialogResult = DialogResult.OK;
Close();
}
}
private void GrantForm_FormClosed(object sender, FormClosedEventArgs e)
{
webBrowser.Dispose();
}
GrantForm grantForm = new GrantForm();
if (grantForm.ShowDialog() == DialogResult.OK)
{
threadClass.m_xxxxx = grantForm.m_xxxxx;
}