Beispiel #1
0
        private Toushi FeedFangan(int bianhao, int minBigNum)
        {
            List <Toushi> tsList = new List <Toushi>();

            for (int i = 4; i >= minBigNum; i--)
            {
                tsList.Add(ToushiTest(bianhao, i));
            }

            Toushi best = tsList
                          .OrderBy(o => o.NoFeed)
                          .ToList()
                          .FirstOrDefault();

            return(best);
        }
Beispiel #2
0
        private List <double> GetTsZuhe(Toushi ts)
        {
            List <double> list = new List <double>();

            int per  = 1;
            int left = ts.BigTsNum;

            if (ts.Num > ts.BigTsNum)
            {
                for (int i = 0; i < ts.Num; i++)
                {
                    if (left > 0)
                    {
                        list.Add(per + ts.Minfeed);
                        left = left - per;
                    }
                    else
                    {
                        list.Add(ts.Minfeed);
                    }
                }
            }
            else
            {
                for (int i = 0; i < ts.Num; i++)
                {
                    if (i == ts.Num - 1)
                    {
                        list.Add(left + ts.Minfeed);
                    }
                    else
                    {
                        list.Add(per + ts.Minfeed);
                        left = left - per;
                    }
                }
            }

            return(list);
        }