Ejemplo n.º 1
0
        private async void AddShops()
        {
            //---get Shops from database and add to combobox---
            var shops = await _webApiCoreClient.GetAllShops();

            foreach (var item in shops)
            {
                comboBoxShops.Items.Add($"{item.Id} {item.Name} {item.City}");
            }
        }
Ejemplo n.º 2
0
        private async void AddShops()
        {
            //---get Shops from database and add to richTextBox---
            var shops = await _webApiCoreClient.GetAllShops();

            foreach (var shop in shops)
            {
                richTextBoxGetShops.AppendText($"{shop.Id} {shop.Name} {shop.City}");
            }
            richTextBoxGetShops.ScrollToCaret();
        }