public DisplayModeStrategyBase(Property property)
 {
     this.property = property;
     displayColorMappings = new Dictionary<int, SolidColorBrush>();
     displayColorMappings.Add(0, Brushes.White);
     displayColorMappings.Add(1, new SolidColorBrush((Color)ColorConverter.ConvertFromString("#8888F1")));
     displayColorMappings.Add(4, new SolidColorBrush((Color)ColorConverter.ConvertFromString("#960003"))); //Red fire
     displayColorMappings.Add(5, new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2943c6"))); //Blue cold
     displayColorMappings.Add(6, new SolidColorBrush((Color)ColorConverter.ConvertFromString("#f2bc01"))); //Yellow lightning
     displayColorMappings.Add(7, new SolidColorBrush((Color)ColorConverter.ConvertFromString("#D02090"))); //Pink chaos
 }
Ejemplo n.º 2
0
 public NamePlusValueStrategy(Property property)
     : base(property)
 { }
Ejemplo n.º 3
0
 public ValuesPlusNameStrategy(Property property)
     : base(property)
 { }
Ejemplo n.º 4
0
 public StringFormatStrategy(Property property)
     : base(property)
 { }