public FeedItemsListManager(ListView lFeedItemsLV, Label lItemLinkLBL, Label lItemTitleLBL, ToolStripLabel lLastDownloadLBL,
     ToolStripButton lShowUnreadFirstBTN, ToolStripButton lMarkAllReadBTN, FeedSubTreeManager lFeedSubManager)
 {
     feedItemsLV = lFeedItemsLV;
     itemLinkLBL = lItemLinkLBL;
     itemTitleLBL = lItemTitleLBL;
     lastDownloadLBL = lLastDownloadLBL;
     showUnreadFirstBTN = lShowUnreadFirstBTN;
     markAllReadBTN = lMarkAllReadBTN;
     feedItemsNormalFont = feedItemsLV.Font;
     feedItemsBoldFont = new Font(feedItemsNormalFont, FontStyle.Bold);
     currentlyDisplayedFeedSubscription = null;
     feedSubManager = lFeedSubManager;
 }
Exemple #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            webBrowser1.GotFocus += new EventHandler(webBrowser1_GotFocus);
            ensureDirectoryExists(settingsDirectory);
            ensureDirectoryExists(archiveDirectory);

            feedSubManager = new FeedSubTreeManager(feedSubsFilepath, feedsTV, hideReadFeedsBTN);
            feedItemsManager = new FeedItemsListManager(feedItemsLV, itemLinkLBL, itemTitleLBL, lastDownloadLBL,
                showUnreadFirstBTN, markAllReadBTN, feedSubManager);

            restoreWindowSettings();

            feedReaderBGW.RunWorkerAsync();

            processCommandLineArgs(Environment.GetCommandLineArgs());
        }