Esempio n. 1
0
        public async void btnNewDeposit_Clicked(object sender, EventArgs eventArgs)
        {
            if (vm == null)
            {
                vm = this.BindingContext as BankAccountViewModel;
            }
            var depositVM = await vm.AddDepositAsync();

            vm.SelectedRegisterItem = depositVM;
            if (depositVM != null)
            {
                CheckingDepositEdit depositViewer = new CheckingDepositEdit();
                depositViewer.BindingContext = depositVM as CheckingDepositViewModel;
                await Navigation.PushAsync(depositViewer);
            }
        }
Esempio n. 2
0
        public async void btnNewDeposit_Clicked(object sender, EventArgs eventArgs)
        {
            if (vm == null)
            {
                vm = this.BindingContext as BankAccountViewModel;
            }
            var depositVM = await vm.AddDepositAsync();

            var _vmDeposit = depositVM as SavingsDepositViewModel;
            await _vmDeposit.LoadBudgetData();

            vm.SelectedRegisterItem = _vmDeposit;
            if (depositVM != null)
            {
                SavingsDepositEdit depositViewer = new SavingsDepositEdit();
                depositViewer.BindingContext = _vmDeposit;
                await Navigation.PushAsync(depositViewer);
            }
        }