在我关闭第二个表单之前,我的应用程序挂起时遇到问题。我正在尝试进行 Dropbox 集成并且一切正常,除了我有一个用户需要输入他们的 oauth 代码然后单击完成的窗口。但是直到我关闭表单窗口后浏览器才会出现。如果我在保管箱身份验证之后插入显示对话框,则应用程序将一起关闭并启动浏览器。有小费吗 ?
Form2 f2 = new Form2();
f2.ShowDialog();
drobbox_auth.Visible = false;
DropBoxConfiguration config = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox) as DropBoxConfiguration;
config.AuthorizationCallBack = new Uri("http://www.ballisticcommunications.com/thankyou.php");
DropBoxRequestToken requestToken = DropBoxStorageProviderTools.GetDropBoxRequestToken(config, "key here", "key here");
String AuthorizationUrl = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(config, requestToken);
Process.Start(AuthorizationUrl);
DropBoxStorageProviderTools.ExchangeDropBoxRequestTokenIntoAccessToken(config, "key here", "key here", requestToken);