| 12345678910111213141516171819202122232425262728293031323334353637383940 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Drawing;
 
- using System.Globalization;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows.Data;
 
- namespace FurnaceUI.Converter
 
- {
 
-     public class UseCountBGColorConverter:IValueConverter
 
-     {
 
-         
 
-         public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 
-         {
 
-             bool itype = (bool)value;
 
-             Brush bs=Brushes.White;
 
-             if (value == null)
 
-             {
 
-                 bs = null;
 
-             }
 
-             if (itype) 
 
-             {
 
-                  bs= Brushes.Red; ;
 
-             }
 
-             if (!itype) 
 
-             {
 
-                  bs=Brushes.Yellow;
 
-             }
 
-             return bs;
 
-         }
 
-         public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 
-         {
 
-             throw new NotImplementedException();
 
-         }
 
-     }
 
- }
 
 
  |