예제 #1
0
파일: SB188.cs 프로젝트: yjtang/AutoBws
 public SB188(string text1, ISynchronizeInvoke invoke1, string text2, string text3, string text4, bool flag1, bool flag2, bool flag3, bool flag4, bool flag5, bool flag6, bool flag7, bool flag8, EnumCollection.eOddsType type1, EnumCollection.eSpiderMethod method1, int num2, int num3, int num4, int num1)
 {
     this._strWebsiteType = "SB2";
     this._strOddFType = "MALAY";
     this._isToSaveBetList = false;
     this._objLeagueListSource = new LeagueList();
     this._strSelectedLeaguePost = "";
     try
     {
         this.DoNew(text1, "SB188", num1, invoke1, text2, text3, text4);
         this.Init(flag1, flag2, flag3, flag4, flag5, flag6, flag7, flag8, type1, method1, num2, num3, num4);
     }
     catch (Exception exception1)
     {
         ProjectData.SetProjectError(exception1);
         Exception exception = exception1;
         base._objErrorLogger.write(base._strName + ": EXCEPTION IN New: " + exception.Message);
         this.WriteProgramLogger(base._strName + ": EXCEPTION IN New: " + exception.Message);
         ProjectData.ClearProjectError();
     }
 }
예제 #2
0
파일: SB188.cs 프로젝트: yjtang/AutoBws
 private void UpdateLeagueListFromText(string text1)
 {
     LeagueList list = new LeagueList();
     int num = 0;
     text1 = CommonFunction.substring(text1, 0, ".showHeader", "[[\"", "\"]]", ref num).Trim();
     if (text1 != string.Empty)
     {
         List<string> list3 = CommonFunction.SeperateStringBySymbol2(text1, "\"],[\"");
         foreach (string str in list3)
         {
             List<string> list2 = CommonFunction.SeperateStringBySymbol2(str, "\",\"");
             if (list2.Count == 2)
             {
                 list.Add(new League(list2[0], list2[1]));
             }
         }
     }
     if (list.get_Count() > 0)
     {
         this._objLeagueListSource = list;
     }
 }