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); }
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; }
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; }
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; }