Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
        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);
            }
        }