Ejemplo n.º 1
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            FormAgregarCuenta editar = new FormAgregarCuenta("EDITAR");

            editar.id                   = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "id_cuenta_banco"));
            editar.txtCodigo.Text       = Convert.ToString(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "codigo"));
            editar.txtNombreCuenta.Text = Convert.ToString(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "nombre"));
            editar.txtDescripcion.Text  = Convert.ToString(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "descripcion"));
            editar.ShowDialog();
            MostrarCuentas();
        }
Ejemplo n.º 2
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            FormAgregarCuenta agregar = new FormAgregarCuenta("AGREGAR");

            agregar.ShowDialog();
        }
Ejemplo n.º 3
0
 private void btnBancosAgregarCuentas_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Bancos.FormAgregarCuenta formAgregar = new Bancos.FormAgregarCuenta("AGREGAR");
     formAgregar.ShowDialog();
 }