Example #1
0
        async Task ExecuteLoadItemsCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                Debts.Clear();
                var items = await repository.GetItemsAsync(User.Id);

                foreach (var item in items)
                {
                    Debts.Add(item);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }
Example #2
0
 public void Clean()
 {
     Income.Clear();
     IncomeTotal = 0.0;
     Expenses.Clear();
     ExpensesTotal = 0.0;
     Total         = 0.0;
     Debts.Clear();
     DebtsTotal = 0.0;
     CleanTotal = 0.0;
     Outages.Clear();
     OutagesTotal = 0.0;
     AccountsBalance.Clear();
 }