private void Submit_TI_Click(object sender, EventArgs e) { try { if (ProgressInfoMng.ShowQuestion("A continuación se generarán los apuntes bancarios asociados") == DialogResult.No) { return; } RefreshAction(); PgMng.Reset(5, 1, "Creando apuntes bancarios...", this); if (Apuntes_TV.TopNode.Nodes[PAGOS_PENDIENTES].Checked) { PgMng.Grow("Creando apuntes bancarios de pagos"); Library.Invoice.ModuleController.CreateApuntesBancarios(CobrosVencidosList); } if (Apuntes_TV.TopNode.Nodes[COBROS_PENDIENTES].Checked) { PgMng.Grow("Creando apuntes bancarios de pagos"); Library.Invoice.ModuleController.CreateApuntesBancarios(PagosVencidosList); } PgMng.Grow("Creando apuntes bancarios de pagos por tarjeta de crédito"); foreach (PaymentList list in PagosTarjetasList) { if (Apuntes_TV.TopNode.Nodes[PAGOS_TARJETA_PENDIENTES].Nodes[PagosTarjetasList.IndexOf(list)].Checked) { Library.Invoice.ModuleController.CreateApuntesBancarios(list); } } PgMng.FillUp(); RefreshAction(); } catch (Exception ex) { PgMng.FillUp(); throw ex; } }