Exemple #1
0
        private void Login_Click(object sender, RoutedEventArgs e)
        {
            if (nickname.Text == "" || nickname.Text == ANONYMOUS)
            {
                MessageBox.Show("Please enter a nickname", "Count Me Up Scotty");
                nickname.Focus();
            }
            else
            {
                if (rememberMe.IsChecked == true)
                {
                    SaveNickname();
                }

                MainMenuScreen next = new MainMenuScreen(nickname.Text);
                next.Show();
                this.Close();
            }
        }
        private void OpenMainMenu()
        {
            MainMenuScreen screen = new MainMenuScreen(player.Name);

            screen.Show();
        }