예제 #1
0
        private async void ShowData()
        {
            lblFundName.Text = this.name;
            double totalValue = 0;

            FundService fundService = new FundService();
            var         response    = await fundService.GetByName(name);

            fundsHistory.Clear();

            foreach (var item in response)
            {
                totalValue += item.Price;
                fundsHistory.Add(item);
            }

            lblTotal.Text = $"R$ {totalValue}";
        }