public timer(timersManager mgr, int delayTime, Action <object> callBack, int cnt, object data) { this._mgr = mgr; timer._idCount += 1L; this._id = timer._idCount; this._delayTime = delayTime; this._cnt = cnt; this._userData = data; this._callBack = callBack; }
public timer(timersManager mgr, int delayTime, Action <object> callBack, int cnt, object data) { _mgr = mgr; _idCount++; _id = _idCount; _delayTime = delayTime; _cnt = cnt; _userData = data; _callBack = callBack; }
public static timer create(timersManager mgr, int delayTime, Action <object> callBack, int cnt = 1, object data = null) { return(new timer(mgr, delayTime, callBack, cnt, data)); }