示例#1
0
        private async void LoadBrands()
        {
            this._brands = new List <BrandDTO>();
            this._brands.Add(new BrandDTO()
            {
                Id = Guid.Empty, Name = "Seleccionar marca"
            });

            var b = await ApiManagerBrands.GetAllBrands();

            this._brands.AddRange(b);

            this.brandDTOBindingSource.DataSource = this._brands;
        }
示例#2
0
文件: UcBrands.cs 项目: okfiera/dgt
        public async Task SearchBrands()
        {
            this.brands = await ApiManagerBrands.GetAllBrands();

            this.brandDTOBindingSource.DataSource = this.brands.OrderBy(m => m.Name);
        }
示例#3
0
 private async void InitializeContext()
 {
     // Call api to initialize context
     await ApiManagerBrands.GetAllBrands();
 }