Esempio n. 1
0
 private void aBMClientesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (abmClie == null)
     {
         abmClie             = new frmCliente();
         abmClie.MdiParent   = this;
         abmClie.FormClosed += new FormClosedEventHandler(abmClie_FormClosed);
         abmClie.Show();
     }
     else
     {
         abmClie.Activate();
     }
 }
Esempio n. 2
0
 private void aBMClientesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (abmClie == null)
     {
         //Enviamos la cadena de conexión como parámetro (string)
         abmClie             = new frmCliente(cadenaBD);
         abmClie.MdiParent   = this;
         abmClie.FormClosed += new FormClosedEventHandler(abmClie_FormClosed);
         abmClie.Show();
     }
     else
     {
         abmClie.Activate();
     }
 }
Esempio n. 3
0
 void abmClie_FormClosed(object sender, FormClosedEventArgs e)
 {
     abmClie = null;
 }