Example #1
0
 private void AddTime()
 {
     if (this.timer == null)
     {
         this.timer = this.Context.CoreModules.timerMDL.AddTimer(heartTime, OnTime, true);
     }
 }
Example #2
0
 private bool RemoveTime()
 {
     if (null != this.timer)
     {
         this.Context.CoreModules.timerMDL.RemoveTimer(this.timer);
         this.timer = null;
         return(true);
     }
     return(false);
 }