Example #1
0
        public FormChannelSettings(String rssLink)
        {
            // initialise with current channel settings
            bool firstRun;

            channelList = new ChannelList(out firstRun);

            // setup GUI
            this.SuspendLayout();
            InitializeComponent();
            FillChannelList();
            this.ResumeLayout();

            if (rssLink != null)
            {
                OnNew(rssLink, null);
            }
        }
Example #2
0
        // read channel config and create instances for all channels
        public bool InitializeChannels()
        {
            bool firstRun = false;

            // do some cleanup since this is executed also in case of a config file change
            this.Clear();

            // read channel configuration file
            ChannelList channelList = new ChannelList(out firstRun);

            // add the channels found
            foreach (ChannelInfo channelInfo in channelList)
            {
                this.Add(channelInfo.link, new RssChannel(channelInfo));
            }

            // setup the initial priorities
            CalculateEffectiveChannelPriorities();

            return(firstRun);
        }