protected override void OnAppearing()
        {
            base.OnAppearing();

            var expenseRepository = new ExpenseRepository();
            var expenses          = expenseRepository.GetExpenses();

            this.ViewModel.TotalExpenseCount = expenses.Sum(e => e.Value);
        }
        private void LoadList()
        {
            var expenseRepository = new ExpenseRepository();
            var expenses          = expenseRepository.GetExpenses();

            ViewModel.Expenses.Clear();
            var categories = Category.GetDefaultCategories();

            foreach (var exp in expenses)
            {
                exp.Category = categories.FirstOrDefault(cat => cat.Id == exp.CategoryId);
                ViewModel.Expenses.Add(exp);
            }
        }