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(); }
private void tsmiGetScores_Click(object sender, EventArgs e) { scoresFrm = new scoresFrm(); scoresFrm.ShowDialog(); }