//double HallarTotIng()
        //{
        //    int n_row = 0;
        //    double n_valor = 0;
        //    for (n_row = 2; n_row <= FgDato.Rows.Count - 1; n_row++)
        //    {
        //        if (FgDato.GetData(n_row, 10).ToString() == "True")
        //        {
        //            n_valor = n_valor + Convert.ToDouble(FgDato.GetData(n_row, 7));
        //        }
        //    }
        //    return n_valor;
        //}
        //double HallarTotEgr()
        //{
        //    int n_row = 0;
        //    double n_valor = 0;
        //    for (n_row = 2; n_row <= FgDato.Rows.Count - 1; n_row++)
        //    {
        //        if (FgDato.GetData(n_row, 10).ToString() == "True")
        //        {
        //            n_valor = n_valor + Convert.ToDouble(FgDato.GetData(n_row, 8));
        //        }
        //    }
        //    return n_valor;
        //}

        bool CamposOK()
        {
            bool booEstado = true;

            if (Convert.ToInt32(CboCta.SelectedValue) == 0)
            {
                MessageBox.Show("¡ No ha especificado el numero de cuenta a conciliar !", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
                booEstado = false;
                CboCta.Focus();
                return(booEstado);
            }
            if (TxtFchEmi.Text == "")
            {
                MessageBox.Show("¡ No ha especificado la fecha de la conciliacion !", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
                booEstado = false;
                TxtFchEmi.Focus();
                return(booEstado);
            }
            if (Convert.ToInt32(CboPer.SelectedValue) == 0)
            {
                MessageBox.Show("¡ No ha especificadoel periodo de la conciliacion !", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
                booEstado = false;
                CboPer.Focus();
                return(booEstado);
            }
            if (TxtSalIni.Text == "")
            {
                MessageBox.Show("¡ No ha especificado el saldo inicial para empezar la conciliacion !", "", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
                booEstado = false;
                TxtSalIni.Focus();
                return(booEstado);
            }
            return(booEstado);
        }
 void Nuevo()
 {
     b_Agregando = true;
     n_QueHace   = 1;
     Tab1.TabPages[0].Enabled = false;
     Blanquea();
     Bloquea();
     ActivarTool();
     LblTitulo2.Text    = "Agregando Nuevo Registro";
     CmdCargar.Text     = "Cargar Mov.";
     Tab1.SelectedIndex = 1;
     CboCta.Focus();
     b_Agregando = false;
 }
        void Modificar()
        {
            b_Agregando = true;
            n_QueHace   = 2;
            Tab1.TabPages[0].Enabled = false;
            Blanquea();
            Bloquea();
            ActivarTool();

            int intIdRegistro = Convert.ToInt32(DgLista.Columns[0].CellValue(DgLista.Row).ToString());

            VerRegistro(intIdRegistro);
            LblTitulo2.Text    = "Modificando Registro";
            CmdCargar.Text     = "Recargar Mov.";
            Tab1.SelectedIndex = 1;
            CboCta.Focus();
            FgDato.AllowEditing = true;
            b_Agregando         = false;
        }