Esempio n. 1
0
 public MainThread(string pID, PTBase pInfo)
 {
     this.PTName = pInfo.PTName;
     ConfigurationStatus.LotteryConfig config = AppInfo.Current.LotteryDic[pID];
     this.downCode   = new DownData(this, config.Type, pInfo, config.RefreshExpect, config.SaveExpect);
     this.loadThread = new Thread(new ParameterizedThreadStart(this.LoadThread));
     this.loadThread.IsBackground = true;
     this.loadThread.Start(true);
     this.cyclicThread = new Thread(new ThreadStart(this.CyclicThread));
     this.cyclicThread.IsBackground = true;
     this.cyclicThread.Start();
     this.verifyCodeThread = new Thread(new ThreadStart(this.VerifyCodeThread));
     this.verifyCodeThread.IsBackground = true;
     this.verifyCodeThread.Start();
     this.checkPTLineThread = new Thread(new ThreadStart(this.CheckPTLineThread));
     this.checkPTLineThread.IsBackground = true;
     this.checkPTLineThread.Start();
     this.webDataThread = new Thread(new ThreadStart(this.WebDataThread));
     this.webDataThread.IsBackground = true;
     this.webDataThread.Start();
     this.ThreadList.Add(this.loadThread);
     this.ThreadList.Add(this.cyclicThread);
     this.ThreadList.Add(this.verifyCodeThread);
     this.ThreadList.Add(this.checkPTLineThread);
     this.ThreadList.Add(this.webDataThread);
     this.ThreadList.Add(this.loadConfigurationThread);
     this.ThreadList.Add(this.refreshLSDataThread);
     this.ThreadList.Add(this.refreshTJDataThread);
 }
Esempio n. 2
0
 public void LoadPTOpenDataLine(ConfigurationStatus.PTOpenData pInfo, string pRegConfigPath)
 {
     this.PTDataInfo    = pInfo;
     this.RegConfigPath = pRegConfigPath;
     if ((this.PTDataInfo != null) && (this.PTDataInfo.LoginLineList.Count != 0))
     {
         CommFunc.SetComboBoxList(this.Cbb_LoginLine, this.PTDataInfo.LoginLineList);
         for (int i = this.PTDataInfo.LotteryIDList.Count - 1; i >= 0; i--)
         {
             string pID = this.PTDataInfo.LotteryIDList[i];
             AppInfo.Current.LotteryDic[pID] = AppInfo.Current.LoadLotteryConfig(pID);
             ConfigurationStatus.LotteryConfig config = AppInfo.Current.LotteryDic[pID];
             OpenDataLine line = new OpenDataLine {
                 LotteryID        = pID,
                 GetLotterySelect = { Tag = pID },
                 Hint             = config.Name,
                 Type             = config.Type,
                 Expect           = config.RefreshExpect,
                 Dock             = DockStyle.Left
             };
             this.Pnl_Bottom.Controls.Add(line);
         }
         this.SetControlInfoByReg();
     }
 }