public OldTrendView(SymbolTrend[] trends) { FourHourBrush = PercentageToBrushConverter.GetBrushFromPercentage(trends[0].TrendRaw); OneHourBrush = PercentageToBrushConverter.GetBrushFromPercentage(trends[1].TrendRaw); FourHourTrend = string.Format("{00:P2}", trends[0].Trend); OneHourTrend = string.Format("{00:P2}", trends[1].Trend); }
public TrendView(SymbolTrend trend) { TrendBrush = PercentageToBrushConverter.GetBrushFromPercentage(trend.TrendRaw); TrendString = string.Format("{00:P2}", trend.Trend); }