Esempio n. 1
0
        private void btnRetrieveFeed_Click(object sender, EventArgs e)
        {
            RSSServiceClient client = new RSSServiceClient();

            Rss.RssFeed feed = client.GetFeed();
            DisplayChannel(feed.Channels[0]);
        }
Esempio n. 2
0
        private void dgvOPML_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 0:     //Check
                break;

            case 1:     //Text
                //The following line would return the URL for the feed
                //dgvOPML.Rows[e.RowIndex].Cells[4].Value.ToString();

                //In Part I of this chapter, we use a fixed feed
                RSSServiceClient client = new RSSServiceClient();
                Rss.RssFeed      feed   = client.GetFeed();
                DisplayChannel(feed.Channels[0]);
                //Display the feed in the secondary data grid

                break;

            case 2:     //Categories
                break;

            case 3:     //Description
                break;

            case 4:     //xmlUrl
                break;

            case 5:     // type
                break;

            case 6:     //version
                break;

            default:
                break;
            }
        }