private void btn_Nuevo_Click(object sender, EventArgs e) { btn_excel.Enabled = false; this.Hide(); operacionFactura = "N"; NotaDeDebito Check = new NotaDeDebito(); Check.Show(); btn_excel.Enabled = true; }
private void btn_ver_Click(object sender, EventArgs e) { operacionFactura = "V"; try { int index = grd_Facturas.SelectedCells[0].RowIndex; numeroDocumento = objListaDocumentoCab[index].DocumentoCabNro; numeroSerie = objListaDocumentoCab[index].DocumentoCabSerie; objDocumentoCab = objListaDocumentoCab[index]; this.Hide(); NotaDeDebito Check = new NotaDeDebito(); Check.Show(); } catch { MessageBox.Show("No ha seleccionado ningún registro"); } }