示例#1
0
 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;
     }
 }
示例#2
0
 public void Logout(Account acc)
 {
     Thread t = new Thread(new ParameterizedThreadStart(doLogout));
     t.Name = "Logout";
     t.Start(acc);
 }
示例#3
0
        private void LogoutAccount(Account acc)
        {
            sInsMgr.Logout(acc);

            Buttonbehaviour(false);
        }
示例#4
0
 private void LoginOrFocusAccount(Account acc)
 {
     curAcc = acc;
     this.Text = "MJTool - " + "焦点帐号[" + curAcc.strUserName + "]";
     if (!curAcc.bIsLogined)
     {
         sInsMgr.Login(curAcc);
     }
     else
     {
         UIUpdateRefreshAll();
     }
     Buttonbehaviour(true);
 }