private async void getCatalogs() { var res = await CatalogController.GetAllCatalogs(); cbProductCatalog.DataSource = res.Data; cbProductCatalog.DisplayMember = "CatalogName"; }
private async void getCatalogs() { var res = await CatalogController.GetAllCatalogs(); catalogs = res.Data; cbProductCatalog.DataSource = res.Data; cbProductCatalog.DisplayMember = "CatalogName"; cbProductCatalog.SelectedIndex = catalogs.FindIndex(c => c.Id.Equals(_productListPage.CurrentEditingProduct.Catalog.Id)); }
public async Task getCatalogs() { var res = await CatalogController.GetAllCatalogs(); if (res == null || res.Data == null) { return; } catalogs = res.Data; filteredCatalogs = res.Data; }