Example #1
0
        private void Tick(object sender, EventArgs e)
        {
            if (SleepState.IsStop())
            {
                return;
            }
            EpgQueue epgQueue = RecTimer.GetInstance().GetEpgQueue();

            if (epgQueue.Enable && epgQueue.Count > 0)
            {
                return;
            }
            if (this.GetNextTime() - DateTime.Now > new TimeSpan(0, 10, 0))
            {
                this.Sleep();
            }
        }
Example #2
0
 public EpgTask(Tuner tuner, EpgQueue epgQueue)
 {
     this.tuner    = tuner;
     this.epgQueue = epgQueue;
 }