Ejemplo n.º 1
0
 //public AccountManager accManager;
 public LoginThreadManager(String uName, String pWord,ShowStatusLoginAccount dshowLoginFunc, List<AccountManager> accounts)
 {
     this.userName = uName;
     this.passWord = pWord;
     this.mControlAllAccounts = accounts;
     this.dShowStatusLoginAccounts += dshowLoginFunc; //设置委托回调
 }
Ejemplo n.º 2
0
 public AccountLoginCoreModule(List<AccountInfo> allAccountInfo,ShowStatusLoginAccount dFunc)
 {
     mAllAccountsInfo = allAccountInfo;   //only Reference
     //deleShowSuccessLoginAccounts += dFunc;
     ProcessAccountLogin(dFunc);
 }
Ejemplo n.º 3
0
 // private LoginThreadManager mSingletonThreadInfo = new LoginThreadManager();
 // private ;
 private void ProcessAccountLogin(ShowStatusLoginAccount deleShowLoginAccounts)
 {
     //mSingletonThreadInfo = mAllAccountsInfo;
     foreach (var accountInfo in mAllAccountsInfo)
     {
         LoginThreadManager paramThread = new LoginThreadManager(accountInfo.userName, accountInfo.passWord, deleShowLoginAccounts, mHandleAllAccounts);
         //Thread.Sleep(8000);
         ThreadPool.QueueUserWorkItem(LoginAccountFormBackground, paramThread);
     }
 }