Beispiel #1
0
 static public DecimalTimerManager GetInstance()
 {
     if (msInstance == null)
     {
         msInstance = new DecimalTimerManager();
     }
     return(msInstance);
 }
Beispiel #2
0
        public DecimalTimer(decimal time, bool loop)
        {
            mDead             = false;
            mId               = msIdCount++;
            mTime             = time;
            mLastCallbackTime = 0;
            mTimeRemain       = time;
            mLoop             = loop;
            mDetalTime        = 0;
            mDetalCallback    = null;
            mDetalCallbackEx  = null;

            DecimalTimerManager.GetInstance().RegisterTimer(this);
        }
Beispiel #3
0
        public DecimalTimer(decimal time, bool loop, decimal detalTime, DetalCallbackEx callback, System.Object userData)
        {
            mDead             = false;
            mId               = msIdCount++;
            mTime             = time;
            mLastCallbackTime = 0;
            mTimeRemain       = time;
            mLoop             = loop;
            mDetalTime        = detalTime;
            mDetalCallback    = null;
            mDetalCallbackEx  = callback;
            mUserData         = userData;

            DecimalTimerManager.GetInstance().RegisterTimer(this);
        }