コード例 #1
0
 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);
 }
コード例 #2
0
 public TrendView(SymbolTrend trend)
 {
     TrendBrush  = PercentageToBrushConverter.GetBrushFromPercentage(trend.TrendRaw);
     TrendString = string.Format("{00:P2}", trend.Trend);
 }