//end of fashion grid

        //selction of holywood list,when you select hollywood,you will get rss feeds of it.
        private void when_holly_select(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "Top Stories")
            {
                Uri top = new Uri("http://rss.cnn.com/rss/edition_entertainment.rss");
                this.Frame.Navigate(typeof(national_rss), top);
            }
            else if (des == "Latest Movies News")
            {
                Uri latest = new Uri("http://www.cinemablend.com/rss.php");
                this.Frame.Navigate(typeof(national_rss), latest);
            }
            else if (des == "Movie Reviews")
            {
                Uri review = new Uri("http://www.cinemablend.com/rss_review.php");
                this.Frame.Navigate(typeof(national_rss), review);
            }
            else if (des == "Upcoming Movies")
            {
                Uri coming = new Uri("http://www.cinemablend.com/rss_preview.php");
                this.Frame.Navigate(typeof(national_rss), coming);
            }
        }
        //end of hollywood selection

        //selction of bolywood list, when you select bollywood,you will get rss feeds of it.
        private void when_bolly_select(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "Top Stories")
            {
                Uri top = new Uri("http://www.bollywoodhungama.com/rss/news.xml");
                this.Frame.Navigate(typeof(national_rss), top);
            }
            else if (des == "Movies Previews")
            {
                Uri latest = new Uri("http://www.bollywoodhungama.com/rss/movie_previews.xml");
                this.Frame.Navigate(typeof(national_rss), latest);
            }
            else if (des == "Movie Reviews")
            {
                Uri review = new Uri("http://www.bollywoodhungama.com/rss/movie_reviews.xml");
                this.Frame.Navigate(typeof(national_rss), review);
            }
            else if (des == "Upcoming Movies")
            {
                Uri coming = new Uri("http://www.bollywoodhungama.com/rss/release_dates.xml");
                this.Frame.Navigate(typeof(national_rss), coming);
            }
        }
コード例 #3
0
        //end of 1st grid selection

        //start of 3rd grid selection
        private void when_thrd_select(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "U.S")
            {
                Uri us = new Uri("http://rss.cnn.com/rss/edition_us.rss");
                this.Frame.Navigate(typeof(national_rss), us);
            }

            else if (des == "Americas")
            {
                Uri america = new Uri("http://rss.cnn.com/rss/edition_americas.rss");
                this.Frame.Navigate(typeof(national_rss), america);
            }
            else if (des == "Asia")
            {
                Uri asia = new Uri("http://rss.cnn.com/rss/edition_asia.rss");
                this.Frame.Navigate(typeof(national_rss), asia);
            }

            else if (des == "Africa")
            {
                Uri africa = new Uri("http://rss.cnn.com/rss/edition_africa.rss");
                this.Frame.Navigate(typeof(national_rss), africa);
            }
        }
コード例 #4
0
        //end of grid

        //start of grid selection
        private void when_select(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "BBC Health")
            {
                Uri bbch = new Uri("http://feeds.bbci.co.uk/news/health/rss.xml?edition=int");
                this.Frame.Navigate(typeof(national_rss), bbch);
            }
            else if (des == "The New York Times Health")
            {
                Uri tnkh = new Uri("http://rss.nytimes.com/services/xml/rss/nyt/Research.xml");
                this.Frame.Navigate(typeof(national_rss), tnkh);
            }
        }
        //end of bolywood selection

        //selction of fashion list, when you select fashion ,you will get rss feeds of it.
        private void when_select_fashion(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "Top Stories")
            {
                Uri top = new Uri("http://www.elle.com/rss/fashion.xml");
                this.Frame.Navigate(typeof(national_rss), top);
            }
            else if (des == "All Fashion")
            {
                Uri all = new Uri("http://feeds.glamour.com/glamour/all_fashion");
                this.Frame.Navigate(typeof(national_rss), all);
            }
            else if (des == "Dresses")
            {
                Uri more = new Uri("http://www.fashiontrends.pk/dresses/salwar-kameez/");
                this.Frame.Navigate(typeof(fact), more);
            }
            else if (des == "Latest Hair Styles")
            {
                Uri hairs = new Uri("http://www.haircutshairstyles.com/rss/trends.xml");
                this.Frame.Navigate(typeof(national_rss), hairs);
            }
            else if (des == "General Hair Styles")
            {
                Uri generl = new Uri("http://www.haircutshairstyles.com/rss/trends.xml");
                this.Frame.Navigate(typeof(national_rss), generl);
            }
            else if (des == "Men's Hair Styles")
            {
                Uri men = new Uri("http://www.haircutshairstyles.com/rss/men.xml");
                this.Frame.Navigate(typeof(national_rss), men);
            }
            else if (des == "Beauty")
            {
                Uri beauty = new Uri("http://www.haircutshairstyles.com/rss/haircuts-hairstyles.xml");
                this.Frame.Navigate(typeof(national_rss), beauty);
            }
            else if (des == "Footware")
            {
                Uri footwar = new Uri("http://footwearnews.com/");
                this.Frame.Navigate(typeof(fact), footwar);
            }
        }
        private void when_select(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o  = e.AddedItems[0] as grid_clas;
            string    su = o.sub;

            if (su == "Global News")
            {
                this.Frame.Navigate(typeof(global));
            }

            else if (su == "National News")
            {
                this.Frame.Navigate(typeof(national));
            }
            else if (su == "Facts")
            {
                this.Frame.Navigate(typeof(fact));
            }
            else if (su == "Weather News")
            {
                this.Frame.Navigate(typeof(weather));
            }
            else if (su == "Health News")
            {
                this.Frame.Navigate(typeof(health));
            }
            else if (su == "Sports News")
            {
                this.Frame.Navigate(typeof(sports));
            }
            else if (su == "Entertainment News")
            {
                this.Frame.Navigate(typeof(entertainment));
            }
            else if (su == "Education News")
            {
                Uri edu = new Uri("http://www.ei-ie.org/en/rss/latestnews/en.rss");
                this.Frame.Navigate(typeof(national_rss), edu);
            }
        }
コード例 #7
0
        //end of app bar code

        //start of 2nd grid selection
        private void when_select2nd(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "U.K")
            {
                Uri uk = new Uri("http://www.theguardian.com/uk/rss");
                this.Frame.Navigate(typeof(national_rss), uk);
            }

            else if (des == "U.S")
            {
                Uri us = new Uri("http://rss.nytimes.com/services/xml/rss/nyt/US.xml");
                this.Frame.Navigate(typeof(national_rss), us);
            }
            else if (des == "Saudi Arab")
            {
                Uri saudi = new Uri("http://www.arabnews.com/cat/1/rss.xml");
                this.Frame.Navigate(typeof(national_rss), saudi);
            }
        }
コード例 #8
0
        //end of 2nd grid selection

        //start of 3rd grid selection
        private void when_select3rd(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "Karachi")
            {
                Uri karachi = new Uri("http://feeds.feedburner.com/TheNewsInternational-Karachi");
                this.Frame.Navigate(typeof(national_rss), karachi);
            }

            else if (des == "Lahore")
            {
                Uri lahore = new Uri("http://feeds.feedburner.com/TheNewsInternational-Lahore");
                this.Frame.Navigate(typeof(national_rss), lahore);
            }
            else if (des == "Islamabad")
            {
                Uri isl = new Uri("http://feeds.feedburner.com/TheNewsInternational-Islamabad");
                this.Frame.Navigate(typeof(national_rss), isl);
            }
            else if (des == "Peshawar")
            {
                Uri peshawar = new Uri("http://feeds.feedburner.com/TheNewsInternational-Peshawar");
                this.Frame.Navigate(typeof(national_rss), peshawar);
            }

            else if (des == "India")
            {
                Uri ind = new Uri("http://timesofindia.feedsportal.com/c/33039/f/533965/index.rss");
                this.Frame.Navigate(typeof(national_rss), ind);
            }
            else if (des == "Gulf Countries")
            {
                Uri gulf = new Uri("http://gulfnews.com/cmlink/1.734148");
                this.Frame.Navigate(typeof(national_rss), gulf);
            }
        }
コード例 #9
0
        //end of app bar

        //start of 2nd grid selection
        private void when_select2nd(object sender, SelectionChangedEventArgs e)
        {
            grid_clas o   = e.AddedItems[0] as grid_clas;
            string    des = o.desc;

            if (des == "World")
            {
                Uri world = new Uri("http://rss.cnn.com/rss/edition_world.rss");
                this.Frame.Navigate(typeof(national_rss), world);
            }

            else if (des == "Europe")
            {
                Uri europe = new Uri("http://rss.cnn.com/rss/edition_europe.rss");
                this.Frame.Navigate(typeof(national_rss), europe);
            }
            else if (des == "Technology")
            {
                Uri tech = new Uri("http://rss.cnn.com/rss/edition_technology.rss");
                this.Frame.Navigate(typeof(national_rss), tech);
            }
            else if (des == "Bussiness")
            {
                Uri buss = new Uri("	http://rss.cnn.com/rss/money_news_international.rss");
                this.Frame.Navigate(typeof(national_rss), buss);
            }
            else if (des == "Space & Science")
            {
                Uri space = new Uri("http://rss.cnn.com/rss/edition_space.rss");
                this.Frame.Navigate(typeof(national_rss), space);
            }
            else if (des == "Sports")
            {
                Uri sports = new Uri("http://feeds.bbci.co.uk/sport/0/rss.xml?edition=uk");
                this.Frame.Navigate(typeof(national_rss), sports);
            }
        }