Exemplo n.º 1
0
        public async Task ExecuteLoadOrdersCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            var orders = new List <Order>();

            orders.AddRange(await _DataClient.GetOpenOrdersForAccountAsync(Account.Id));
            orders.AddRange(await _DataClient.GetClosedOrdersForAccountAsync(Account.Id));

            _Orders.Clear();
            _Orders.AddRange(SortOrders(orders));

            GroupOrders();

            IsBusy = false;
        }