private async Task CargarDatos() { var lista = await _cuentaCL.GetAllJusu("c001"); _lstCuentas.Clear(); //_lstCuentas = await Task.Run(() => _cuentaCL.GetAll(GlobalConfig.Compañia _lstCuentas = await _cuentaCL.GetAll(GlobalConfig.Compañia.Codigo); //_lstCuentas = _cuentaCL.GetAll(GlobalConfig.Compañia); treeCuentas.Nodes.AddRange(TreeViewCuentas.CrearTreeView(_lstCuentas)); // CargarDatosAListas(); }
private void CargarCuentas() { LstCuentas = new CuentaCL().GetAll(GlobalConfig.Compañia); treeCuentas.Nodes.AddRange(TreeViewCuentas.CrearTreeView(LstCuentas)); }