Beispiel #1
0
        private async void ReloadLastTransactions()
        {
            var transactionHelper = new TransactionsHelper(new TransactionsRepository());

            try
            {
                var transactions = await transactionHelper
                                   .GetLastUserTransactions(Domain.Constants.Constants.TestUserId, 5);

                var listViewItems = GetTransactionsListViewItems(transactions);

                lastTransactions.Items.Clear();
                lastTransactions.Items.AddRange(listViewItems);
            }
            catch (ArgumentNullException ex)
            {
                Error.ShowDialog(ex.Message);
            }
        }