void BtnSaveClick(object sender, EventArgs e) { if (accResult == null) { accResult = new Account(this.tbName.Text, this.tbPswd.Text); } else { accResult.strUserName = this.tbName.Text; accResult.strPassword = this.tbPswd.Text; } }
public void Logout(Account acc) { Thread t = new Thread(new ParameterizedThreadStart(doLogout)); t.Name = "Logout"; t.Start(acc); }
private void LogoutAccount(Account acc) { sInsMgr.Logout(acc); Buttonbehaviour(false); }
private void LoginOrFocusAccount(Account acc) { curAcc = acc; this.Text = "MJTool - " + "焦点帐号[" + curAcc.strUserName + "]"; if (!curAcc.bIsLogined) { sInsMgr.Login(curAcc); } else { UIUpdateRefreshAll(); } Buttonbehaviour(true); }