Exemplo n.º 1
0
 public void GenerateBetListRefIDList(string text1, ref StringList listRef1, ref StringList listRef2, ref StringList listRef3)
 {
     int num = 0;
     string item = "";
     string str2 = "";
     List<string> list = new List<string>();
     List<string> list2 = new List<string>();
     List<string> list3 = new List<string>();
     while (num > -1)
     {
         item = CommonFunction.substring(text1, num, "FontMidBlue Font12", ">", "<", ref num).Trim();
         if ((item != string.Empty) & (num > -1))
         {
             str2 = CommonFunction.substring(text1, num, "Font12\" style=\"width:80px;\">", "<", ref num).Trim();
             if (str2.Contains("Rejected") | str2.Contains("Void"))
             {
                 list2.Add(item);
             }
             else
             {
                 if (!str2.Contains("Waiting"))
                 {
                     list.Add(item);
                     continue;
                 }
                 list3.Add(item);
             }
         }
     }
     listRef1.AddIfNotExisted(list);
     listRef2.AddIfNotExisted(list2);
     listRef3.AddIfNotExisted(list3);
 }
Exemplo n.º 2
0
 public void GenerateBetListRefIDList(string text1, ref StringList listRef1, ref StringList listRef2, ref StringList listRef3)
 {
     string item = "";
     List<string> list = new List<string>();
     List<string> list3 = new List<string>();
     List<string> list4 = new List<string>();
     List<string> list2 = CommonFunction.SeperateStringBySymbol2(text1, "b_rig");
     foreach (string str in list2)
     {
         string str2 = str.ToLower();
         int num = 0;
         item = CommonFunction.substring(str2, 0, "0000cc\">", "<", ref num).Trim().ToUpper();
         if (item != string.Empty)
         {
             if (str2.Contains("pending") | str2.Contains("waiting"))
             {
                 list4.Add(item);
             }
             else
             {
                 if (str2.Contains("cancel") | str2.Contains("reject"))
                 {
                     list3.Add(item);
                     continue;
                 }
                 list.Add(item);
             }
         }
     }
     listRef1.AddIfNotExisted(list);
     listRef2.AddIfNotExisted(list3);
     listRef3.AddIfNotExisted(list4);
 }
Exemplo n.º 3
0
 public void GenerateBetListRefIDList(string text1, ref StringList listRef1, ref StringList listRef2, ref StringList listRef3)
 {
     int num = 0;
     string item = "";
     string str2 = "";
     List<string> list = new List<string>();
     List<string> list2 = new List<string>();
     List<string> list3 = new List<string>();
     while (num > -1)
     {
         item = CommonFunction.substring(text1, num, "bettext", ">", "<", ref num).Trim();
         if ((item != string.Empty) & (num > -1))
         {
             str2 = CommonFunction.substring(text1, num, "'remarkCancel'>", "<", ref num).Trim();
             if (str2 == "Danger - Goal")
             {
                 list2.Add(item);
             }
             else
             {
                 if (!str2.Contains("to be confirmed"))
                 {
                     list.Add(item);
                     continue;
                 }
                 list3.Add(item);
             }
         }
     }
     listRef1.AddIfNotExisted(list);
     listRef2.AddIfNotExisted(list2);
     listRef3.AddIfNotExisted(list3);
 }