Exemple #1
0
			public LmTimerPauser(LmTimer owner, int id)
			{
				Owner = owner;
				_Id = id;
				if (_Id != 0)
					Owner.PauseTimer(id);
			}
Exemple #2
0
 public LmTimerPauser(LmTimer owner, int id)
 {
     Owner = owner;
     _Id   = id;
     if (_Id != 0)
     {
         Owner.PauseTimer(id);
     }
 }
Exemple #3
0
        public static void Test()
        {
            LmTimer timer = new LmTimer();

            timer.LmTimerEvent += timer_LmTimerEvent;
            //timer.Start();
            int id1 = timer.AddTimer(500, LmTimerType.typeMultiple);
            int id2 = timer.AddTimer(1000, LmTimerType.typeSingle);

            System.Threading.Thread.Sleep(5000);
            timer.RemoveTimer(id1);
            timer.RemoveAllTimers();
            timer.Stop();
        }
Exemple #4
0
 public LmTimerTask(LmTimer owner)
 {
     Owner = owner;
 }
Exemple #5
0
 public void test1()
 {
     var timer = new LmTimer();
     AssertNotNull(timer);
 }
Exemple #6
0
		public static void Test()
		{
			LmTimer timer = new LmTimer();
			timer.LmTimerEvent += timer_LmTimerEvent;
			//timer.Start();
			int id1 = timer.AddTimer(500, LmTimerType.typeMultiple);
			int id2 = timer.AddTimer(1000, LmTimerType.typeSingle);
			System.Threading.Thread.Sleep(5000);
			timer.RemoveTimer(id1);
			timer.RemoveAllTimers();
			timer.Stop();
		}
Exemple #7
0
			public LmTimerTask(LmTimer owner)
			{
				Owner = owner;
			}