Пример #1
0
        // helper for pause in using constuct
        public ILmTimerPauser GetTimerPauser(int timerId)
        {
            int pauserId = 0;

            lock (_TimerLock)
            {
                LmTimerItem timer = _Items.GetByID(timerId);
                if (timer != null)
                {
                    pauserId = timerId;
                }
            }

#if DEBUG
            if (pauserId == 0)
            {
                TRACE("LmTimer.GetTimerPauser ID={0} (not existing)", timerId);
            }
#endif
            var pauser = new LmTimerPauser(this, pauserId);
            return(pauser);
        }
Пример #2
0
		// helper for pause in using constuct
		public ILmTimerPauser GetTimerPauser(int timerId)
		{
			int pauserId = 0;

			lock (_TimerLock)
			{
				LmTimerItem timer = _Items.GetByID(timerId);
				if (timer != null)
				{
					pauserId = timerId;
				}
			}

#if DEBUG
			if (pauserId == 0)
			{
				TRACE("LmTimer.GetTimerPauser ID={0} (not existing)", timerId);
			}
#endif
			var pauser = new LmTimerPauser(this, pauserId);
			return pauser;
		}