private void Grd_Voucher_DoubleClick(object sender, EventArgs e)
        {
            index = grd_Voucher.SelectedCells[0].RowIndex;
            DataGridViewRow dtg = grd_Voucher.Rows[index];

            objVoucher = new Voucher();

            if (dtg.Cells[6].Value.ToString() == "ANULADO")
            {
                operacionVoucher = "A";
                index            = grd_Voucher.SelectedCells[0].RowIndex;
                objVoucher       = objListVoucher[index];
                EmisionVoucher check = new EmisionVoucher();
                this.Hide();
                check.Show();
            }
            else
            {
                operacionVoucher = "V";
                index            = grd_Voucher.SelectedCells[0].RowIndex;
                objVoucher       = objListVoucher[index];
                EmisionVoucher check = new EmisionVoucher();
                this.Hide();
                check.Show();
            }
        }
        private void btn_Nuevo_Click(object sender, EventArgs e)
        {
            btn_Nuevo.Enabled = false;
            this.Hide();
            operacionVoucher = "N";
            EmisionVoucher Check = new EmisionVoucher();

            Check.Show();
            btn_Nuevo.Enabled = true;

            /*
             * bool resultado=false;
             * DialogResult DlgRes;
             * DlgRes = MessageBox.Show("¿Desea utilizar la versión actual?", "Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
             * if (DlgRes == DialogResult.Yes)
             * {
             *
             *  resultado = true;
             * }
             * else if(DlgRes == DialogResult.No)
             * {
             *
             * }
             *
             * if (resultado == true)
             * {
             *  operacionVoucher = "v2019";
             *  btn_Nuevo.Enabled = false;
             *  this.Hide();
             *  operacionVoucher = "N";
             *  EmisionVoucher Check = new EmisionVoucher();
             *  Check.Show();
             *  btn_Nuevo.Enabled = true;
             * }
             */
        }