/// <summary> /// Gets called when epg has been cancelled /// Should be overriden by the class /// </summary> public override void OnEpgCancelled() { Log.Epg("epg grabber:epg cancelled"); if (_state == EpgState.Idle) { return; } _state = EpgState.Idle; _tvController.StopGrabbingEpg(_user); _user.CardId = -1; _currentTransponder.InUse = false; return; }
/// <summary> /// Stops this instance. /// </summary> public void Stop() { if (_user.CardId >= 0) { Log.Epg("EpgCard: card: {0} stop grabbing", _user.CardId); _tvController.StopGrabbingEpg(_user); } if (_currentTransponder != null) { _currentTransponder.InUse = false; } _tvController.OnTvServerEvent -= _eventHandler; _epgTimer.Enabled = false; _isRunning = false; _state = EpgState.Idle; _user.CardId = -1; }