Пример #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();
     }
 }
Пример #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();
     }
 }
Пример #3
0
 void abmClie_FormClosed(object sender, FormClosedEventArgs e)
 {
     abmClie = null;
 }