Ejemplo n.º 1
0
        private void vehiculosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var formVehiculos = new formVehiculos();

            formVehiculos.MdiParent = this;
            formVehiculos.Show();
        }
Ejemplo n.º 2
0
 private void vehículosToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (formVehiculos == null)
     {
         formVehiculos           = new formVehiculos();
         formVehiculos.MdiParent = this;
         formVehiculos.Show();
     }
     else if (formVehiculos.IsDisposed)
     {
         formVehiculos           = new formVehiculos();
         formVehiculos.MdiParent = this;
         formVehiculos.Show();
     }
     else
     {
         formVehiculos.Activate();
     }
 }