// Method to open the Genera Planilla WinForm static void AbrirFrmGeneraPlanilla(object sender, EventArgs e) { if (GPFrmPlanLocalyMapeo == null) { try { GPFrmPlanLocalyMapeo = new GPFrmPlanGeneralyMapeo(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else { if (GPFrmPlanLocalyMapeo.Created == false) { GPFrmPlanLocalyMapeo = new GPFrmPlanGeneralyMapeo(); } } // Always show and activate the WinForm GPFrmPlanLocalyMapeo.Show(); GPFrmPlanLocalyMapeo.Activate(); }
public void AbrirFrmGeneraPlanilla() //(object sender, EventArgs e) { if (GPFrmPlanLocalyMapeo == null) { try { GPFrmPlanLocalyMapeo = new GPFrmPlanGeneralyMapeo(DatosDB.DBDatos); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else { if (GPFrmPlanLocalyMapeo.Created == false) { GPFrmPlanLocalyMapeo = new GPFrmPlanGeneralyMapeo(DatosDB.DBDatos); } } // Always show and activate the WinForm GPFrmPlanLocalyMapeo.Show(); GPFrmPlanLocalyMapeo.Activate(); GPFrmPlanLocalyMapeo.Cierra += new GPFrmPlanGeneralyMapeo.LogHandler(cierraTodo); //suscribe a cierre de forma }