1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
   |         private void entrer_Click(object sender, System.EventArgs e)
        {
            if ((user.Text.Equals("")) || (pass.Text.Equals("")))
            {
                MessageBox.Show("Des information manquante", "Library Management", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if ((user.Text != "admin") || (pass.Text != "admin"))
            {
                MessageBox.Show("Nom d'utilisateur/mot du passe erroneé", "Library Management", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            else
            {
                this.Close();
                this.Dispose();
                Mainfrm diag = new Mainfrm();
                diag.ShowDialog();
            } | 
Partager