Example #1
0
 protected virtual void OnAnimationStarted(AnimationEventArgs e)
 {
     if (this.AnimationStarted != null)
     {
         this.AnimationStarted(this, e);
     }
 }
Example #2
0
 protected virtual void OnFrameChanged(AnimationEventArgs e)
 {
     if (this.FrameChanged != null)
     {
         this.FrameChanged(this, e);
     }
 }
Example #3
0
        private void timer_0_Tick(object sender, EventArgs e)
        {
            AnimationEventArgs args = new AnimationEventArgs(this.ieffects.DoEffect(), this.int_0, false);

            if (this.ieffects.IsFinal)
            {
                args.IsFinal = true;
            }
            this.OnFrameChanged(args);
            if (this.int_0 == 0)
            {
                this.OnAnimationStarted(args);
            }
            if (this.ieffects.IsFinal)
            {
                this.timer.Stop();
                this.OnAnimationEnd(args);
                this.OnAnimationEnded(args);
            }
            this.int_0++;
        }