private void servicios_btn_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["AgregarComponentesGastosVehiculoForm"]; if (fc != null) { fc.BringToFront(); fc.WindowState = FormWindowState.Normal; } else { AgregarComponentesGastosVehiculoForm frm = new AgregarComponentesGastosVehiculoForm(); frm.Show(); } }
public void AbrirVentanaAgregarComponentesGastos() { AgregarComponentesGastosVehiculoForm form = new AgregarComponentesGastosVehiculoForm(); if (Program.Gventana == "componentes") { form.Text = "Agregar Piezas y Repuestos"; } else { form.Text = "Agregar Gastos Generales"; } form.ShowDialog(); LLenarDtgComponentes(); LLenarDtgGastos(); LLenarDtgFacturas(); CalcularTotales(); }