Example #1
0
        private async System.Threading.Tasks.Task AddPaymentHistorys(PaymentHistoryEditViewModel paymentHistoryEditViewModel)
        {
            var page = new PaymentHistoryEditPage();

            page.BindingContext = paymentHistoryEditViewModel;
            await Navigation.PushAsync(page);

            NavigationPage.SetHasBackButton(page, true);
        }
Example #2
0
        async void Handle_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            if (e.Item == null)
            {
                return;
            }
            //await DisplayAlert("Item Tapped", "An item was tapped.", "OK");
            var page = new PaymentHistoryEditPage();
            await Navigation.PushAsync(page);

            NavigationPage.SetHasBackButton(page, true);
            await((PaymentHistoryEditViewModel)page.BindingContext).Load(((PaymentHistoryView)e.Item).PaymentHistoryId);
            //Deselect Item
            ((ListView)sender).SelectedItem = null;
        }