示例#1
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     QuoteGridLine.QuotePair    qp    = (QuoteGridLine.QuotePair)value;
     System.Windows.Media.Brush brush = qp._newvalue > qp._oldvalue ? System.Windows.Media.Brushes.Green
                 : (qp._newvalue < qp._oldvalue ? System.Windows.Media.Brushes.Red : System.Windows.Media.Brushes.White);
     return(brush);
 }
示例#2
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     QuoteGridLine.QuotePair qp = (QuoteGridLine.QuotePair)value;
     return(qp._newvalue);
 }