private void btnAuthorization_Click(object sender, EventArgs e) { log.LogInfo("正在执行验证方法-{0}", "btnAuthorization_Click"); FrmLogin login = new FrmLogin(authorizeUrl); if (login.ShowDialog() == DialogResult.OK) { log.LogInfo("数据获取完成,结果为:{0}",login.resultHtml); context = auth.Authorized(login.resultHtml); InstanceLocator.Current.RegisterInstance<TopContext>(context); } }
private void btnAuthorization_Click(object sender, EventArgs e) { _log.LogInfo("正在执行验证方法-{0}", "btnAuthorization_Click"); FrmLogin login = new FrmLogin(authorizeUrl); login.MdiParent = this; login.Show(); }