示例#1
0
        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);
        }
示例#2
0
文件: Rays.cs 项目: sunnnjin/Blackbox
        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);
        }
示例#3
0
 public void LightSpotUpdated(LightSpot lightSpot)
 {
     UpdateLightSpot(lightSpot);
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }
示例#6
0
 public void LightSpotUpdated(LightSpot lightSpot)
 {
     UpdateLightSpot(lightSpot);
 }