Ejemplo n.º 1
0
 /// <Summary>
 /// 预测数据
 /// </Summary>
 public static void InitForecast()
 {
     Lt_Forecasts.Clear();//清空数据
     if (Tendency.Lt_Tendencys.Count > 0)
     {
         CurrentTendency.SetCTendencysValue(Tendency.CurrTendency);
         addForecastData(Tendency.Lt_BigSmallNames, CurrentTendency.Lt_CurrentBS, CurrentTendency.Lt_CurrentOP, Lt_Forecasts);
         addForecastData(Tendency.Lt_OddPairNames, CurrentTendency.Lt_CurrentOP, CurrentTendency.Lt_CurrentBS, Lt_Forecasts);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        public static void AddAllUnitNames()
        {
            TendencyModel        tm;
            List <ForecastModel> lt;

            Lt_AllUnitNames.Clear();
            for (int i = 0; i < Tendency.Lt_Tendencys.Count; i++)
            {
                tm = Tendency.Lt_Tendencys[i];
                lt = new List <ForecastModel>();

                CurrentTendency.SetCTendencysValue(tm);
                addForecastData(Tendency.Lt_BigSmallNames, CurrentTendency.Lt_CurrentBS, CurrentTendency.Lt_CurrentOP, lt);
                addForecastData(Tendency.Lt_OddPairNames, CurrentTendency.Lt_CurrentOP, CurrentTendency.Lt_CurrentBS, lt);

                var      vs    = lt.OrderBy(l => l.Diff).ThenBy(l => l.Sum).ToList();
                string[] array = new string[8];
                for (int j = 0; j < vs.Count; j++)
                {
                    array[j] = vs[j].UnitName;
                }
                Lt_AllUnitNames.Add(array);
            }
        }