Пример #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();
 }