/// <summary> /// Initializes a new instance of the Light class. /// </summary> public Light() { State = new LightState(); }
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 }); }