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(); }
private void btnNuevo_Click(object sender, EventArgs e) { FormAgregarCuenta agregar = new FormAgregarCuenta("AGREGAR"); agregar.ShowDialog(); }
private void btnBancosAgregarCuentas_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Bancos.FormAgregarCuenta formAgregar = new Bancos.FormAgregarCuenta("AGREGAR"); formAgregar.ShowDialog(); }