예제 #1
0
        private void btnSendScore_Click(object sender, EventArgs e)
        {
            string player = tbxPlayerName.Text;

            if (player != string.Empty && player.Length < 25)
            {
                this.game.AddPlayer(player);

                db.InsertGame(this.game.PlayerName, this.game.Score);
            }
            else
            {
                MessageBox.Show("Veuillez ajouter un nom de maximum 25 caractères!");
            }
            scoresFrm = new scoresFrm();
            scoresFrm.Show();
            this.Close();
        }
예제 #2
0
 private void tsmiGetScores_Click(object sender, EventArgs e)
 {
     scoresFrm = new scoresFrm();
     scoresFrm.ShowDialog();
 }