Example #1
0
        /// <summary>
        /// 過濾數字
        /// </summary>
        public List <BaseOptions> Filter(List <BaseOptions> tmp)
        {
            //殺直選
            tmp = Calculation.AssignNumber(tmp, tePos.Text, false);

            //定位殺
            tmp = Calculation.PosNumber(tmp, cblTenThousands, "0", false);
            tmp = Calculation.PosNumber(tmp, cblThousands, "1", false);
            tmp = Calculation.PosNumber(tmp, cblHundreds, "2", false);
            tmp = Calculation.PosNumber(tmp, cblTens, "3", false);
            tmp = Calculation.PosNumber(tmp, cblUnits, "4", false);

            //殺和尾
            tmp = Calculation.SumLastNumber(tmp, cblSumLast, false);

            //殺和值
            tmp = Calculation.SumNumber(tmp, teSum.Text, false);

            //殺跨度
            tmp = Calculation.CrossNumber(tmp, cblCross, false);

            //殺通碼
            tmp = Calculation.ExistsNumber(tmp, cblComm, 1, false, false);

            //殺大小
            tmp = Calculation.CheckValueNumber(tmp, cblData1, 1, false);

            //殺奇偶
            tmp = Calculation.OddEvenNumber(tmp, cblData2, false);

            //殺质合
            tmp = Calculation.PrimeNumber(tmp, cblData3, false);

            //膽碼
            if (cblNumber1.SelectedValue.IndexOf('1') > -1)
            {
                tmp = Calculation.ExistsNumber2(tmp, cblNumber1, cblNumber1_2, null, (bool)btnCountRepeat.IsChecked);
            }
            if (cblNumber2.SelectedValue.IndexOf('1') > -1)
            {
                tmp = Calculation.ExistsNumber2(tmp, cblNumber2, cblNumber2_2, null, (bool)btnCountRepeat.IsChecked);
            }
            if (cblNumber3.SelectedValue.IndexOf('1') > -1)
            {
                tmp = Calculation.ExistsNumber2(tmp, cblNumber3, cblNumber3_2, null, (bool)btnCountRepeat.IsChecked);
            }
            if (cblNumber4.SelectedValue.IndexOf('1') > -1)
            {
                tmp = Calculation.ExistsNumber2(tmp, cblNumber4, cblNumber4_2, null, (bool)btnCountRepeat.IsChecked);
            }
            if (cblNumber5.SelectedValue.IndexOf('1') > -1)
            {
                tmp = Calculation.ExistsNumber2(tmp, cblNumber5, cblNumber5_2, null, (bool)btnCountRepeat.IsChecked);
            }
            if (cblNumber6.SelectedValue.IndexOf('1') > -1)
            {
                tmp = Calculation.ExistsNumber2(tmp, cblNumber6, cblNumber6_2, null, (bool)btnCountRepeat.IsChecked);
            }

            //比例大小比
            tmp = Calculation.BigSmallRatio(tmp, cblRatio.SelectedValue);

            //比例奇偶比
            tmp = Calculation.OddEvenRatio(tmp, cblRatio2.SelectedValue);

            //比例質合比
            tmp = Calculation.PrimeRatio(tmp, cblRatio3.SelectedValue);
            return(tmp);
        }