Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "" || textBox1.Text == "")
     {
         MessageBox.Show("Remplissez tous les champs svp!!");
     }
     else if (textBox1.Text == "Administrateur" && textBox2.Text == "niveauAdmin@@")
     {
         textBox1.Text = "";
         textBox2.Text = "";
         loginAdmin lo = new loginAdmin();
         lo.Hide();
         formPrixPourcentage p = new formPrixPourcentage();
         p.ShowDialog();
     }
     else if (textBox1.Text == "Niveau4" && textBox2.Text == "niveau4@")
     {
         textBox1.Text = "";
         textBox2.Text = "";
         loginAdmin lo = new loginAdmin();
         lo.Hide();
         formConsommer p = new formConsommer();
         p.ShowDialog();
     }
     else if (textBox1.Text == "Niveau3" && textBox2.Text == "54321@")
     {
         textBox1.Text = "";
         textBox2.Text = "";
         loginAdmin lo = new loginAdmin();
         lo.Hide();
         formUsers p = new formUsers();
         p.ShowDialog();
     }
     else if (textBox1.Text == "Niveau5" && textBox2.Text == "5991@")
     {
         textBox1.Text = "";
         textBox2.Text = "";
         loginAdmin lo = new loginAdmin();
         lo.Hide();
         V ag = new V();
         ag.ShowDialog();
     }
     else if (textBox1.Text == "Niveau6" && textBox2.Text == "202@")
     {
         textBox1.Text = "";
         textBox2.Text = "";
         loginAdmin lo = new loginAdmin();
         lo.Hide();
         formCommisssion ag = new formCommisssion();
         ag.ShowDialog();
     }
 }
Beispiel #2
0
        private void barButtonItem24_ItemClick(object sender, ItemClickEventArgs e)
        {
            loginAdmin pp = new loginAdmin();

            pp.ShowDialog();
        }
Beispiel #3
0
        private void barButtonItem10_ItemClick(object sender, ItemClickEventArgs e)
        {
            loginAdmin us = new loginAdmin();

            us.ShowDialog();
        }
Beispiel #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            loginAdmin cons = new loginAdmin();

            cons.ShowDialog();
        }