Beispiel #1
0
 private void SetTimer(int elapse)
 {
     if (this.timerItem == null)
     {
         this.timerItem = TimerMgr.SetInterval((uint)elapse, new TimerMgr.TimerCallBacktHandler(this.TimerCallBacktHandler));
     }
     else
     {
         this.timerItem.Elapse = (uint)elapse;
     }
 }
Beispiel #2
0
 private void Reset()
 {
     if (this._frameList != null)
     {
         this._frameList.Clear();
     }
     this._frameList      = null;
     this._frameCounter   = 0;
     this._numberOfFrames = 0;
     this._numberOfLoops  = -1;
     this._currentLoop    = 0;
     this._logicalWidth   = 0;
     this._logicalHeight  = 0;
     if (this.timerItem != null)
     {
         TimerMgr.EraseTimerCallback(this.timerItem);
         this.timerItem = null;
     }
 }
Beispiel #3
0
 private void TimerCallBacktHandler(TimerMgr.TimerItem item)
 {
     this.NextFrame();
 }