Ejemplo n.º 1
0
 private void serachGame_comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (search_by_pot_size.IsSelected)
     {
         serachGame_comboBox.Visibility = System.Windows.Visibility.Hidden;
         game_box.Visibility            = System.Windows.Visibility.Visible;
         game_label.Visibility          = System.Windows.Visibility.Visible;
         game_label.Content             = "please enter pot size:";
     }
     else if (search_by_player_name.IsSelected)
     {
         serachGame_comboBox.Visibility = System.Windows.Visibility.Hidden;
         game_box.Visibility            = System.Windows.Visibility.Visible;
         game_label.Visibility          = System.Windows.Visibility.Visible;
         game_label.Content             = "please enter name:";
     }
     else if (search_by_prefs.IsSelected)
     {
         create_game CG = new create_game(BL, user, false);
         CG.Show();
         this.Close();
     }
     else
     {
         game_box.Visibility   = System.Windows.Visibility.Hidden;
         game_label.Visibility = System.Windows.Visibility.Hidden;
     }
 }
Ejemplo n.º 2
0
        private void create_game_button_Click(object sender, RoutedEventArgs e)
        {
            create_game CG = new create_game(BL, user, true);

            CG.Show();
            this.Close();
        }