/// <summary> /// 继续计时器事件 /// </summary> /// <param name="info"></param> public void ResumeTimerEvent(TimerInfo info) { if (objects.Contains(info) && info != null) { info.delete = false; } }
/// <summary> /// 删除计时器事件 /// </summary> /// <param name="name"></param> public void RemoveTimerEvent(TimerInfo info) { if (objects.Contains(info) && info != null) { info.delete = true; } }
/// <summary> /// 停止计时器事件 /// </summary> /// <param name="info"></param> public void StopTimerEvent(TimerInfo info) { if (objects.Contains(info) && info != null) { info.stop = true; } }
/// <summary> /// 添加计时器事件 /// </summary> /// <param name="name"></param> /// <param name="o"></param> public void AddTimerEvent(TimerInfo info) { if (!objects.Contains(info)) { objects.Add(info); } }