예제 #1
0
        private void analyze5Tendency(Lottery lottery, Tendency <Tendency5Model> tendency)
        {
            tendency.ClearTendencys();//清空记录
            Tendency5Model tm;

            for (int i = lottery.Lt_Lotterys.Count - 1; i >= 0; i--)
            {
                tm           = new Tendency5Model();
                tm.FiveStart = At.FiveStart(lottery.Lt_Lotterys, i);
                tm.Sno       = (lottery.Lt_Lotterys[i].Sno.ToString() + "期").PadLeft(5, '0');
                tm.Dtime     = lottery.Lt_Lotterys[i].Dtime;
                tendency.AddTendency(tm);//添加趋势记录
            }
        }