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(); }