/// <summary> /// 定位胆开奖趋势分析 /// </summary> private void analyzeDwdTendency(Lottery lottery, DwdTendency dwdTendency, int index) { dwdTendency.ClearDwdTendencys();//清空记录 DwdTendencyModel tm; AnalyzeDwdTendency at = new AnalyzeDwdTendency(); for (int i = lottery.Lt_Lotterys.Count - 1; i >= 0; i--) { tm = new DwdTendencyModel(); tm.Big = at.BigNum(lottery.Lt_Lotterys, i, index); //大 tm.Small = at.SmallNum(lottery.Lt_Lotterys, i, index); //小 tm.Odd = at.OddPairNum(lottery.Lt_Lotterys, i, index, 1); //奇 tm.Pair = at.OddPairNum(lottery.Lt_Lotterys, i, index, 0); //偶 dwdTendency.AddDwdTendency(tm); //添加定位胆趋势记录 } }
/// <summary> /// 定位胆开奖趋势分析 /// </summary> private void analyzeDwdTendency(Lottery lottery, DwdTendency dwdTendency, int index) { dwdTendency.ClearDwdTendencys();//清空记录 DwdTendencyModel tm; AnalyzeDwdTendency at = new AnalyzeDwdTendency(); for (int i = lottery.Lt_Lotterys.Count - 1; i >= 0; i--) { tm = new DwdTendencyModel(); tm.Lottery = lottery.Lt_Lotterys[i].Lottery; tm.Big = at.BigNum(lottery.Lt_Lotterys, i, index); //大 tm.Small = at.SmallNum(lottery.Lt_Lotterys, i, index); //小 tm.Odd = at.OddPairNum(lottery.Lt_Lotterys, i, index, 1); //奇 tm.Pair = at.OddPairNum(lottery.Lt_Lotterys, i, index, 0); //偶 tm.Sno = (lottery.Lt_Lotterys[i].Sno.ToString() + "期").PadLeft(5, '0'); tm.Dtime = lottery.Lt_Lotterys[i].Dtime; dwdTendency.AddDwdTendency(tm);//添加定位胆趋势记录 } }