Esempio n. 1
0
        private void Ckb_SplitValue_Click(object sender, EventArgs e)
        {
            int pCount = Convert.ToInt32(this.GetSelectType().Split(new char[] { '中' })[0]);
            List <List <string> > list = this.SplitValueMain(pCount);

            if (list.Count == 0)
            {
                CommFunc.PublicMessageAll("号码太少,无法分割!", true, MessageBoxIcon.Asterisk, "");
            }
            else
            {
                int        num2;
                ValueLable lable;
                for (num2 = 1; num2 <= pCount; num2++)
                {
                    List <string> pList = list[num2 - 1];
                    lable           = this.ValueLableList[num2 - 1];
                    lable.Hint      = $"第{num2}组({pList.Count}注)";
                    lable.Visible   = true;
                    lable.Value     = CommFunc.Join(pList, " ");
                    lable.ValueList = CommFunc.CopyList(pList);
                    string pFile = string.Concat(new object[] { this.HJFGPath, @"\", num2, ".txt" });
                    CommFunc.WriteTextFileToStr(pFile, lable.Value);
                    lable.Tag = pFile;
                }
                for (num2 = pCount; num2 < this.ValueLableList.Count; num2++)
                {
                    lable         = this.ValueLableList[num2];
                    lable.Visible = false;
                }
            }
        }
Esempio n. 2
0
        public string GetRXWZString1(List <string> pNumberList, List <int> pRXWZ, string playName)
        {
            string str = "";

            ConfigurationStatus.PlayBase playInfo = CommFunc.GetPlayInfo(playName);
            if (AppInfo.Current.Lottery.Group != ConfigurationStatus.LotteryGroup.GPSSC)
            {
                return(str);
            }
            if (playInfo.IndexList.Count == 5)
            {
                return(str);
            }
            if (playName.Contains("定位胆"))
            {
                return(str);
            }
            List <int> list = new List <int>();

            if ((pRXWZ != null) && (pRXWZ.Count > 0))
            {
                list = CommFunc.CopyList <int>(pRXWZ);
            }
            else if (CommFunc.CheckPlayIsRXFS(playName))
            {
                for (int j = 0; j < 5; j++)
                {
                    if (pNumberList[j] != "*")
                    {
                        list.Add(j);
                    }
                }
            }
            else
            {
                foreach (int num2 in playInfo.IndexList)
                {
                    list.Add(num2 - 1);
                }
            }
            List <string> pList = new List <string>();

            for (int i = 0; i < list.Count; i++)
            {
                string item = AppInfo.Index1Dic[list[i]];
                pList.Add(item);
            }
            return(CommFunc.Join(pList, "_"));
        }
Esempio n. 3
0
        public override bool BetsMain(ConfigurationStatus.SCPlan plan, ref string pHint)
        {
            bool flag = false;

            try
            {
                string betsLine    = this.GetBetsLine(plan.Type);
                string lotteryLine = this.GetLotteryLine(plan.Type, false);
                Dictionary <string, Dictionary <string, List <string> > > fNNumberDic = plan.FNNumberDic;
                foreach (string str3 in fNNumberDic.Keys)
                {
                    Dictionary <string, List <string> > dictionary2 = fNNumberDic[str3];
                    foreach (string str4 in dictionary2.Keys)
                    {
                        if (plan.IsMNState(str4, true))
                        {
                            flag  = true;
                            pHint = "投注成功";
                        }
                        else
                        {
                            List <string> pTNumberList  = plan.GetPTNumberList(dictionary2[str4]);
                            string        pResponsetext = "";
                            int           num           = Convert.ToInt32(plan.AutoTimes(str4, true));
                            int           num2          = plan.FNNumber(str4);
                            double        num3          = plan.AutoTotalMoney(str4, true);
                            string        str6          = CommFunc.CheckPlayIsDS(plan.Play) ? "true" : "false";
                            string        play          = plan.Play;
                            List <string> list2         = new List <string>();
                            Dictionary <string, List <string> > dictionary3 = new Dictionary <string, List <string> >();
                            int count = CommFunc.GetPlayInfo(play).IndexList.Count;
                            if (CommFunc.CheckPlayIsRX(play))
                            {
                                int num5;
                                if (CommFunc.CheckPlayIsRXDS(play))
                                {
                                    List <string> itemList = new List <string>();
                                    num5 = 0;
                                    while (num5 < plan.RXWZ.Count)
                                    {
                                        string item = plan.RXWZ[num5].ToString();
                                        itemList.Add(item);
                                        num5++;
                                    }
                                    list2 = CommFunc.GetCombinations(itemList, count, "");
                                    num2  = CommFunc.GetBetsCodeCount(pTNumberList, play, null);
                                    num3  = (num2 * num) * plan.Money;
                                }
                                else if (CommFunc.CheckPlayIsRXFS(play))
                                {
                                    List <string> list4 = new List <string>();
                                    num5 = 0;
                                    while (num5 < pTNumberList.Count)
                                    {
                                        string str9 = $"{num5}-{pTNumberList[num5]}";
                                        list4.Add(str9);
                                        num5++;
                                    }
                                    List <string> list5 = CommFunc.GetCombinations(list4, count, "|");
                                    for (num5 = 0; num5 < list5.Count; num5++)
                                    {
                                        string pStr = list5[num5];
                                        if (!pStr.Contains("*"))
                                        {
                                            List <string> list6 = new List <string>();
                                            List <string> list7 = new List <string>();
                                            List <string> list8 = CommFunc.SplitString(pStr, "|", -1);
                                            for (int j = 0; j < list8.Count; j++)
                                            {
                                                string str11 = list8[j];
                                                list6.Add(str11.Split(new char[] { '-' })[0]);
                                                list7.Add(str11.Split(new char[] { '-' })[1]);
                                            }
                                            string str12 = CommFunc.Join(list6);
                                            dictionary3[str12] = list7;
                                            list2.Add(str12);
                                        }
                                    }
                                }
                            }
                            else
                            {
                                list2.Add("0");
                            }
                            List <string> pList = new List <string>();
                            for (int i = 0; i < list2.Count; i++)
                            {
                                string str13 = list2[i];
                                if (CommFunc.CheckPlayIsRXFS(play))
                                {
                                    string playName = "";
                                    switch (count)
                                    {
                                    case 2:
                                        playName = "前二直选复式";
                                        break;

                                    case 3:
                                        playName = "前三直选复式";
                                        break;

                                    case 4:
                                        playName = "前四直选复式";
                                        break;
                                    }
                                    List <string> pCodeList = dictionary3[str13];
                                    num2         = CommFunc.GetBetsCodeCount(pCodeList, playName, null);
                                    pTNumberList = CommFunc.CopyList(pCodeList);
                                    num3         = (num2 * num) * plan.Money;
                                }
                                List <int> pIndexList = CommFunc.ConvertSameListInt(str13);
                                string     str15      = "%7B%22i%22%3A{0}%2C%22c%22%3A%22{1}%22%2C%22n%22%3A{2}%2C%22t%22%3A%22{3}%22%2C%22k%22%3A{4}%2C%22m%22%3A{5}%2C%22a%22%3A{6}%7D";
                                str15 = string.Format(str15, new object[] { this.GetPlayMethodID1(plan.Type, play, pIndexList), this.GetNumberList1(pTNumberList, plan.Play, null), num2, num, "0", plan.Unit, num3 });
                                pList.Add(str15);
                            }
                            string str16  = CommFunc.Join(pList, "%2C");
                            string format = "gameId={0}&periodId={1}&isSingle={2}&canAdvance=false&orderList=%5B{3}%5D";
                            format = string.Format(format, new object[] { this.GetBetsLotteryID(plan.Type), base.ExpectID, str6, str16 });
                            HttpHelper.GetResponse(ref pResponsetext, betsLine, "POST", format, lotteryLine, AppInfo.PTInfo.BetsTime2, "UTF-8", true);
                            flag  = this.CheckReturn(pResponsetext, true);
                            pHint = this.GetReturn(pResponsetext);
                            Thread.Sleep(0xbb8);
                        }
                    }
                }
            }
            catch
            {
            }
            return(flag);
        }