Beispiel #1
0
 /// <summary>
 /// 选择前二
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void rbtnBefore_CheckedChanged(object sender, EventArgs e)
 {
     if (this.rbtnBefore.Checked)
     {
         EnumStyle = EnumStyle.前二;
     }
     if (isAddEvent)
     {
         statistics();
     }
 }
Beispiel #2
0
        /// <summary>
        /// 选择后二
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void rbtnAfter_CheckedChanged(object sender, EventArgs e)
        {
            if (this.rbtnAfter.Checked)
            {
                EnumStyle = EnumStyle.后二;
                refreshXscpStyle();
            }

            if (isAddEvent)
            {
                statistics();
            }
        }
Beispiel #3
0
        /// <summary>
        /// 求上次出现小数的 离现在有几次了
        /// </summary>
        /// <returns></returns>
        public int SmallNum(int index, EnumStyle es)
        {
            LotteryModel lm;
            int          pre = Lottery.Lt_Lotterys.Count - 1;

            for (int i = index; i < Lottery.Lt_Lotterys.Count; i++)
            {
                lm = Lottery.Lt_Lotterys[i];
                if (es == EnumStyle.后二 && lm.num4 < 5 && lm.num5 < 5 && lm.num4 != lm.num5)
                {
                    pre = i;
                    break;
                }
                else if (es == EnumStyle.前二 && lm.num1 < 5 && lm.num2 < 5 && lm.num1 != lm.num2)
                {
                    pre = i;
                    break;
                }
            }
            return(pre - index);
        }
Beispiel #4
0
        /// <summary>
        /// 求上次出现奇偶数的 离现在有几次了
        /// </summary>
        /// <returns></returns>
        public int OddPairNum(int index, int number1, int number2, EnumStyle es)
        {
            LotteryModel lm;
            int          pre = Lottery.Lt_Lotterys.Count - 1;

            for (int i = index; i < Lottery.Lt_Lotterys.Count; i++)
            {
                lm = Lottery.Lt_Lotterys[i];

                if (es == EnumStyle.后二 && lm.num4 % 2 == number1 && lm.num5 % 2 == number2 && lm.num4 != lm.num5)
                {
                    pre = i;
                    break;
                }
                else if (es == EnumStyle.前二 && lm.num1 % 2 == number1 && lm.num2 % 2 == number2 && lm.num1 != lm.num2)
                {
                    pre = i;
                    break;
                }
            }
            return(pre - index);
        }
 public EnumFlagAttribute(EnumStyle style = EnumStyle.Popup)
 {
     Style = style;
 }