Пример #1
0
        private void PreviousBut_Click(object sender, RoutedEventArgs e)
        {
            SelectPlayers sp = new SelectPlayers(gameName);

            sp.Show();
            Close();
        }
Пример #2
0
        private void ButNex_Click_1(object sender, RoutedEventArgs e)
        {
            string game_name = gameSelectorCombo.Text;

            if (game_name != string.Empty)
            {
                SelectPlayers sp = new SelectPlayers(game_name);
                sp.Show();
                Close();
            }
            else
            {
                MessageBox.Show("You have to choose the kind of game", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }