Exemplo n.º 1
0
        /// <summary>
        /// 前二、后二趋势
        /// </summary>
        private void initDgvFF()
        {
            if (befor2FFTendency.Lt_Tendencys.Count <= 0)
            {
                return;
            }

            DgvController.AddRows(this.dgvFF, 6);//添加记录
            DgvController.SetDgvValue(this.dgvFF, DgvController.Lt_Type, 0);

            DgvController.SetDgvValue(this.dgvFF, XsMath.GetMaxTendency(befor2FFTendency.Lt_Tendencys), 0);                                                                   //前大
            DgvController.SetDgvValue(this.dgvFF, ((Tendency <Tendency1Model>) this.lt_dwds[0]).CurrTendency, ((Tendency <Tendency1Model>) this.lt_dwds[1]).CurrTendency, 1); //前定

            WinLottery wl = new WinLottery();

            DgvController.SetDgvValue(this.dgvFF, befor2FFTendency.CurrTendency, 2, wl.CalculatorWinLottery(this.befor2FFTendency.Lt_Tendencys)); //前二
            DgvController.SetDgvValue(this.dgvFF, after2FFTendency.CurrTendency, 3, wl.CalculatorWinLottery(this.after2FFTendency.Lt_Tendencys)); //后二


            DgvController.SetDgvValue(this.dgvFF, ((Tendency <Tendency1Model>) this.lt_dwds[3]).CurrTendency, ((Tendency <Tendency1Model>) this.lt_dwds[4]).CurrTendency, 4); //后定
            DgvController.SetDgvValue(this.dgvFF, XsMath.GetMaxTendency(after2FFTendency.Lt_Tendencys), 5);                                                                   //后大

            DgvController.RefreshDgvColor(this.dgvFF, 2);
            DgvController.RefreshDgvColor(this.dgvFF, 3);
        }
Exemplo n.º 2
0
        private void initDgvAll()
        {
            DgvController.AddRows(this.dgvAll, 2);
            this.dgvAll[0, 0].Value = "星大";
            this.dgvAll[0, 1].Value = "星值";

            DgvController.SetDgvValue(this.dgvAll, XsMath.GetMaxTendency(allFFTendency.Lt_Tendencys), 0); //星大
            DgvController.SetDgvValue(this.dgvAll, allFFTendency.CurrTendency, 1);                        //星值
            DgvController.RefreshDgvColor(this.dgvAll, 1);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 定位胆数字
        /// </summary>
        private void initDgvDigit()
        {
            DgvController.AddRows(this.dgvDigit, 2);
            this.dgvDigit[0, 0].Value = "定大";
            this.dgvDigit[0, 1].Value = "定数";

            DgvController.SetDgvValue(this.dgvDigit, XsMath.GetMaxTendency(dwdDigitTendencys.Lt_Tendencys), 0); //定大
            DgvController.SetDgvValue(this.dgvDigit, dwdDigitTendencys.CurrTendency, 1);                        //定数

            for (int j = 1; j <= 10; j++)
            {
                int value = Convert.ToInt32(this.dgvDigit[j, 1].Value.ToString());
                if (value == 0)
                {
                    DgvController.SetDgvBackColorStyle(this.dgvDigit, 1, j, Color.LightGray, 12);
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 定位胆数字
        /// </summary>
        private void initDgvDigit()
        {
            if (dwdDigitTendencys.Lt_Tendencys.Count <= 0)
            {
                return;
            }

            DgvController.AddRows(this.dgvDigit, 2);
            this.dgvDigit[0, 0].Value = "定大";
            this.dgvDigit[0, 1].Value = "定数";

            DgvController.SetDgvValue(this.dgvDigit, XsMath.GetMaxTendency(dwdDigitTendencys.Lt_Tendencys), 0); //定大
            DgvController.SetDgvValue(this.dgvDigit, dwdDigitTendencys.CurrTendency, 1);                        //定数

            List <int> lt = new List <int>();

            for (int j = 1; j <= 10; j++)
            {
                int value = Convert.ToInt32(this.dgvDigit[j, 1].Value.ToString());
                lt.Add(value);
                if (value == 0)
                {
                    DgvController.SetDgvBackColorStyle(this.dgvDigit, 1, j, Color.LightGray, 12);
                }
            }

            int max = lt.OrderByDescending(l => l).ToList()[0];

            for (int j = 1; j <= 10; j++)
            {
                int value = Convert.ToInt32(this.dgvDigit[j, 1].Value.ToString());
                if (value == max)
                {
                    DgvController.SetDgvBackColorStyle(this.dgvDigit, 1, j, Color.Yellow, 12);
                }
            }
        }