public Rays(LightBox lightBox) { _visible = false; _lightBox = lightBox; BuildRays(); _lightSpot = new LightSpot(); this.timer = new DispatcherTimer(); this.timer.Interval = TimeSpan.FromMilliseconds(50); this.timer.Tick += new EventHandler(timer_Tick); }
public void LightSpotUpdated(LightSpot lightSpot) { UpdateLightSpot(lightSpot); }
public void UpdateLightSpot(LightSpot lightSpot) { this.lightSpot.Visibility = lightSpot._visibility; this.lightSpot.SetXY(lightSpot._point.X, lightSpot._point.Y); this.lightSpot.SetStroke(this.path.Stroke); }