/// <summary> /// Called when the KnownChannels collection should be loaded /// </summary> public virtual void LoadKnownChannels() { try { this.KnownChannels = ChannelCollection.LoadFromFile(GetKnownChannelsStoreFilename()); } catch (Exception ex) { this.KnownChannels = new ChannelCollection(); ErrorLogger.DumpToDebug(ex); } }
public StreamingTVGraph(StreamSourceInfo sourceConfig, OpenGraphRequest openGraphRequest) : base(sourceConfig, openGraphRequest) { InitializeNetworkSink(); this.TVConfig = sourceConfig.TVTuner; try { this.KnownChannels = ChannelCollection.LoadFromFile(GetKnownChannelsStoreFilename()); } catch (Exception ex) { this.KnownChannels = new ChannelCollection(); AppLogger.Dump(ex); } }