Пример #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);
 }