async Task LoadSavingsDepositsAsync(bool getReconciled = false)
        {
            using (UnitOfWork uow = new UnitOfWork(this.dbFilePath))
            {
                var _results = await uow.GetSavingsDepositsAsync(model.id, getReconciled);

                if (_results.Successful)
                {
                    foreach (var deposit in _results.Results)
                    {
                        deposit.savingsAccount = model as SavingsAccount;

                        SavingsDepositViewModel vm = new SavingsDepositViewModel(this.dbFilePath);
                        vm.IsNew     = false;
                        vm.CanEdit   = true;
                        vm.CanDelete = true;
                        await vm.PopulateVMAsync(deposit);

                        vm.ItemUpdated += OnRegisterUpdated;
                        this.AccountRegister.Add(vm);
                    }
                }
                else
                {
                    if (_results.WorkException != null)
                    {
                        WriteErrorCondition(_results.WorkException);
                    }
                    else if (!string.IsNullOrEmpty(_results.Message))
                    {
                        WriteErrorCondition(_results.Message);
                    }
                    else
                    {
                        WriteErrorCondition("An unknown error has occurred loading deposit records");
                    }
                }
            }
        }
        async Task <SavingsDepositViewModel> AddSavingsDepositAsync()
        {
            SavingsDepositViewModel vm = new SavingsDepositViewModel(this.dbFilePath);

            vm.IsNew     = true;
            vm.CanEdit   = true;
            vm.CanDelete = false;
            vm.ItemType  = AccountRegisterItemViewModel.AccountItemType.Deposits;

            SavingsDeposit deposit = new SavingsDeposit();

            deposit.savingsAccount   = model as SavingsAccount;
            deposit.savingsAccountId = model.id;
            deposit.transactionDate  = DateTime.Now;

            await vm.PopulateVMAsync(deposit);

            //this.AccountRegister.Add(vm);
            //await GroupAccountItemsAsync();
            //this.SelectedRegisterItem = vm;

            return(vm);
        }