Пример #1
0
        private Color GetColor(UpDownEnum upDown)
        {
            if (upDown == UpDownEnum.Down)
            {
                return(Color.Blue);
            }
            if (upDown == UpDownEnum.Up)
            {
                return(Color.Red);
            }

            if (upDown == UpDownEnum.StrongUp)
            {
                return(Color.DarkRed);
            }
            if (upDown == UpDownEnum.WeakUp)
            {
                return(Color.MediumVioletRed);
            }

            if (upDown == UpDownEnum.StrongDown)
            {
                return(Color.DarkBlue);
            }
            if (upDown == UpDownEnum.WeakDown)
            {
                return(Color.MediumBlue);
            }

            return(Color.Black);
        }
Пример #2
0
        public void UpdateSummaryBaseLine(string item, TimeIntervalEnum time, string position, UpDownEnum baseLine)
        {
            var info = ForecastInfos.Where(t => t.Item == item && t.TimeInterval == time && t.Position == position).First();

            info.BaseLine = baseLine;
        }
Пример #3
0
        public void UpdateSummaryVolatility(string item, TimeIntervalEnum time, string position, UpDownEnum volatility)
        {
            var info = ForecastInfos.Where(t => t.Item == item && t.TimeInterval == time && t.Position == position).First();

            info.Volatility = volatility;
        }
Пример #4
0
        public void UpdateSummaryTrend(string item, TimeIntervalEnum time, string position, UpDownEnum trend)
        {
            var info = ForecastInfos.Where(t => t.Item == item && t.TimeInterval == time && t.Position == position).First();

            info.Trend = trend;
        }