Exemple #1
0
        async Task ExecuteLoadTransactionHistoryCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                TransactionHistory.Clear();
                var transactions = await UserController.GetTransactionHistory();

                foreach (var trans in transactions)
                {
                    TransactionHistory.Add(trans);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }