Exemple #1
0
        /// <summary>
        ///  carga en el panel el formulario frmMostrarVehiculo
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAlta_Click(object sender, EventArgs e)
        {
            var             form        = Application.OpenForms.OfType <FrmAltaVehiculo>().FirstOrDefault();
            FrmAltaVehiculo frmAltaVehi = form ?? new FrmAltaVehiculo();

            AddFormInPanel(frmAltaVehi);
        }
Exemple #2
0
        private void btnAgregarVehiculo_Click(object sender, EventArgs e)
        {
            FrmAltaVehiculo oFrmAltaVehiculo = new FrmAltaVehiculo();

            oFrmAltaVehiculo.ShowDialog();
            CargarGrillaVehiculos();
        }