Exemplo n.º 1
0
        public SearchResults(OpenNETCF.Rss.Data.Feed feed)
        {
            this.feed = feed;
            InitializeComponent();

            this.msnSearchResultsList1.BeginUpdate();
            this.msnSearchResultsList1.DataSource = feed.Items;
            this.msnSearchResultsList1.EndUpdate();
        }
Exemplo n.º 2
0
        private void FeedThread()
        {
            OpenNETCF.Rss.Data.Feed feed = null;
            if (this.searchTerm.Length > 0)
            {
                string uri = string.Format("http://search.msn.com/results.aspx?q={0}&format=rss&FORM=RSRE", this.searchTerm);
                feed = FeedEngine.Receive(new Uri(uri));
            }

            if (this.FeedReceived != null)
            {
                this.FeedReceived(feed);
            }
        }
Exemplo n.º 3
0
        void FeedReceivedInvoke(OpenNETCF.Rss.Data.Feed feed)
        {
            this.EnableAnimation(false);

            if (feed != null)
            {
                using (SearchResults sr = new SearchResults(feed))
                {
                    sr.ShowDialog();
                }
            }
            else
            {
                this.Display = "Unable to retreive results.";
            }
        }
Exemplo n.º 4
0
 void  Main_FeedReceived(OpenNETCF.Rss.Data.Feed feed)
 {
     this.Invoke(new FeedReceivedHandler(FeedReceivedInvoke), feed);
 }