private void Button_News_Click(object sender, RoutedEventArgs e) { SomeCategory.currentCategory = "News"; SomeBorderColor.currentColor = Brushes.Red; this.Hide(); MainWindow_Category sistema = new MainWindow_Category(); sistema.ShowDialog(); this.Close(); }
private void Button_Entertainment_Click(object sender, RoutedEventArgs e) { SomeCategory.currentCategory = "Entertainment"; SomeBorderColor.currentColor = Brushes.DarkOrange; this.Hide(); MainWindow_Category sistema = new MainWindow_Category(); sistema.ShowDialog(); this.Close(); }
private void Button_Opinion_Click(object sender, RoutedEventArgs e) { Label_Category.Content = "Opinion"; SomeCategory.currentCategory = "Opinion"; SomeBorderColor.currentColor = Brushes.DarkGreen; this.Hide(); MainWindow_Category sistema = new MainWindow_Category(); sistema.ShowDialog(); this.Close(); }
private void Button_Politis_Click(object sender, RoutedEventArgs e) { Label_Category.Content = "Politics"; SomeCategory.currentCategory = "Politics"; SomeBorderColor.currentColor = Brushes.Blue; this.Hide(); MainWindow_Category sistema = new MainWindow_Category(); sistema.ShowDialog(); this.Close(); }