Example #1
0
 void ventanaInv_Disposed(object sender, EventArgs e)
 {
     ventanaInv = null;
 }
Example #2
0
 private void menuItem7_Click(object sender, EventArgs e)
 {
     if (Globales.user.Datos.IdSucursal != 0)
     {
         MessageBox.Show("No tiene los privilegios suficientes para ver ésta pantalla", "Permisos", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     if (ventanaInv == null)
     {
         ventanaInv = new frmInventarios();
         ventanaInv.MdiParent = this;
         ventanaInv.Disposed += new EventHandler(ventanaInv_Disposed);
     }
     ventanaInv.Show();
     ventanaInv.Focus();
 }