Example #1
0
 /// <summary>
 /// Initializes a new instance of the Light class.
 /// </summary>
 public Light()
 {
     State = new LightState();
 }
Example #2
0
 public void StateChanged(object sender, LightState state)
 {
     var c = state.Color;
     OnDot.Fill = new SolidColorBrush(new Color() { A = 255, R = c.R, G = c.G, B = c.B });
 }