예제 #1
0
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (Home.IsSelected)
     {
         NewManager.GetNews("Home", Homes);
         TitleTextBlock.Text = "Home";
     }
     else if (Game.IsSelected)
     {
         NewManager.GetNews("Game", Homes);
         TitleTextBlock.Text = "Game";
     }
 }
예제 #2
0
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (Financial.IsSelected)
     {
         NewManager.GetNews("Financial", NewsItems);
         TitleTextBlock.Text = "Financial";
     }
     else if (Food.IsSelected)
     {
         NewManager.GetNews("Food", NewsItems);
         TitleTextBlock.Text = "Food";
     }
 }
예제 #3
0
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (AllProduct.IsSelected)
     {
         TitleTextBlock.Text = "All Products";
         NewManager.GetAll(Products);
     }
     if (Iphone.IsSelected)
     {
         TitleTextBlock.Text = "Iphone";
         NewManager.GetNews("Iphone", Products);
     }
     else if (Samsung.IsSelected)
     {
         TitleTextBlock.Text = "Samsung";
         NewManager.GetNews("Samsung", Products);
     }
 }