protected virtual void OnAnimationStarted(AnimationEventArgs e) { if (this.AnimationStarted != null) { this.AnimationStarted(this, e); } }
protected virtual void OnFrameChanged(AnimationEventArgs e) { if (this.FrameChanged != null) { this.FrameChanged(this, e); } }
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++; }