Beispiel #1
0
 public static void Reset(AnimationTool animationTool)
 {
     TransportControls.animationTool = animationTool;
     StartLabelCommand.Text          = StartTime.ToString("F3");
     EndLabelCommand.Text            = EndTime.ToString("F3");
     Update(animationTool.Time / animationTool.TotalTime);
 }
Beispiel #2
0
        static void Executing(object sender, EventArgs e)
        {
            var command = (Command)sender;

            if (command == PlayCommand)
            {
                IsReversed = false;
            }
            if (command == ReverseCommand)
            {
                IsReversed = true;
            }

            if (Animation.IsAnimating)
            {
                Animation.Stop();
            }
            else
            {
                AnimationTool.Animate();
            }
        }
Beispiel #3
0
 public ToolPathAnimator(AnimationTool animationTool)
 {
     this.animationTool = animationTool;
     lastTime           = DateTime.Now;
 }
 public static void Reset(AnimationTool animationTool)
 {
     TransportControls.animationTool = animationTool;
     StartLabelCommand.Text = StartTime.ToString("F3");
     EndLabelCommand.Text = EndTime.ToString("F3");
     Update(animationTool.Time / animationTool.TotalTime);
 }
 public ToolPathAnimator(AnimationTool animationTool)
 {
     this.animationTool = animationTool;
     lastTime = DateTime.Now;
 }