Пример #1
0
        private void btnConnexion_Click(object sender, EventArgs e)
        {
            _username = txtUtilisateur.Text;

            if (!_connexion.Authentifier(_username, txtMotDePasse.Text))
            {
                MessageBox.Show("Mauvais utilisateur ou mot de passe");
            }
            else
            {
                //Lancer Game.cs
                this.Hide();
                Game game = new Game(_connexion);
                game.Show();
            }
        }