예제 #1
0
 /// <summary>
 /// 停止播放动画
 /// </summary>
 public void StopDisplay()
 {
     if (isPlaying)
     {
         isPlaying = false;
         TimerUtils.Stop(this.GetHashCode().ToString());
     }
 }
예제 #2
0
        private void DisplayCallBack(int n)
        {
            LinkedListNode <AnimationFrame> node = allAniFrames.Find(currentFrame).Next;

            if (node != null)
            {
                currentFrame = node.Value;
            }
            else if (isLoop)
            {
                currentFrame = allAniFrames.First.Value;
            }
            else
            {
                isFinished = true;
                TimerUtils.Stop(this.GetHashCode().ToString());
            }
        }