예제 #1
0
        private void getFeedsButton_Click(object sender, EventArgs e)
        {
            var rssManager = new RssManager("config.xml", _readingThreadCount, _writingThreadCount);

            if (userComboBox.SelectedIndex != -1)
            {
                _collection = rssManager.GetFeeds(userComboBox.SelectedItem.ToString());
                if (_collection.Count > 0)
                {
                    ChangeDataGridView(_collection);
                    ChangeWebBrowserText(_collection.ToList().GetRange(0, 10));
                }
            }
        }
예제 #2
0
        public FeedForm()
        {
            InitializeComponent();

            _writingThreadCount = 2;
            _readingThreadCount = int.Parse(ConfigurationManager.AppSettings["threadCount"]);

            dataGridView.CellClick       += dataGridView_CellClick;
            dataGridView.CellDoubleClick += dataGridView_CellDoubleClick;

            var rssManager = new RssManager("config.xml", _readingThreadCount, _writingThreadCount);
            var userList   = rssManager.GetUsernames();

            ChangeUserComboBox(userList);
        }