コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            IGestionEmployes
                gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            Boolean infoOk = gestionEmployes.checkAuthentification(textBoxIdentifiant.Text, textBoxMotPasse.Text);

            if (infoOk)
            {
                FormMenu form = new FormMenu();
                form.Show();
                this.Hide();
            }
            else if (!infoOk)
            {
                MessageBox.Show("L'identifiant ou le mot de passe entré est invalide.", "Erreur lors de l'authentification");
            }
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            IGestionEmployes
            gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            Boolean infoOk = gestionEmployes.checkAuthentification(textBoxIdentifiant.Text, textBoxMotPasse.Text);

            if (infoOk)
            {
                FormMenu form = new FormMenu();
                form.Show();
                this.Hide();
            }
            else if (!infoOk)
            {
                MessageBox.Show("L'identifiant ou le mot de passe entré est invalide.", "Erreur lors de l'authentification");
            }
        }