public bool Login(IMainFrm mainFrm) { this.mainFrm = mainFrm; if (isLogin) { return(true); } else { //登陆 string strURL = string.Format("{0}/Login.aspx", this.companyAccount.ServiceURL); Uri url = new System.Uri(strURL, System.UriKind.Absolute); LoginCheck lc = new LoginCheck(url, true); lc.ShowDialog(); isLogin = lc.OK; if (lc.OK) { this._timer.Start(); } else { this._timer.Stop(); } return(lc.OK); } }
public bool BindingCheck(CompanyAccount account) { this.companyAccount = account; string strURL = string.Format("{0}/Login.aspx", this.companyAccount.ServiceURL); Uri url = new System.Uri(strURL, System.UriKind.Absolute); LoginCheck lc = new LoginCheck(url, true, "账号检查,请稍后..."); lc.ShowDialog(); isLogin = lc.OK; return(lc.OK); }
private bool CheckLogin() { lock (_lock) { string strURL = string.Format("{0}/CheckLogin.html", this.companyAccount.ServiceURL); LoginCheck lc = new LoginCheck(new System.Uri(strURL, System.UriKind.Absolute), false); lc.ShowDialog(); isLogin = lc.OK; lc = null; return(true);// lc.OK; } }