Esempio n. 1
0
 private void menuPrincipal_Load_1(object sender, EventArgs e)
 {
     if (Passerelle.connectBase() == false)
     {
         MessageBox.Show("Souci connexion BDD");
     }
 }
Esempio n. 2
0
        private void GestionCommande_Load(object sender, EventArgs e)
        {
            panel2.Visible        = true;
            panel1.Visible        = false;
            panel3.Visible        = false;
            TxtMessage.ForeColor  = System.Drawing.Color.Green;
            txtMessageP.ForeColor = System.Drawing.Color.Green;
            TxtMessage.Text       = "Entrez un numéro et appuyez sur entrée";
            TxtMessage.Visible    = true;

            if (Passerelle.connectBase() == false)
            {
                MessageBox.Show("Souci connexion BDD");
            }
            else
            {
                maxNum = Passerelle.getMaxNumCde();
            }
        }