Beispiel #1
0
        private void compras_btn_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["NuevoVehiculoForm"];

            if (fc != null)
            {
                fc.BringToFront();
                fc.WindowState = FormWindowState.Normal;
            }
            else
            {
                NuevoVehiculoForm frm = new NuevoVehiculoForm();
                frm.Show();
            }
        }
Beispiel #2
0
        private void nuevoVehiculo_btn_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["NuevoVehiculoForm"];

            if (fc != null)
            {
                fc.BringToFront();
            }
            else
            {
                NuevoVehiculoForm form = new NuevoVehiculoForm();
                form.ShowDialog();
                proceso_radioBtn.Checked = true;
                LlenarDtgVehiculos();
            }
        }