private async void Edit_Clicked(object sender, EventArgs e) { Catch _catch = (sender as MenuItem)?.CommandParameter as Catch; CatchFormPage catchFormPage = await CatchFormPage.CreateAsync(this, FishingTrip, _catch); await Navigation.PushAsync(catchFormPage); }
private async void CatchesListView_OnItemSelected(object sender, SelectedItemChangedEventArgs e) { if (e.SelectedItem == null) { return; } Catch _catch = e.SelectedItem as Catch; CatchFormPage catchFormPage = await CatchFormPage.CreateAsync(this, FishingTrip, _catch); await Navigation.PushAsync(catchFormPage); CatchesListView.SelectedItem = null; }
private async void BtnAddCatch_OnClicked(object sender, EventArgs e) { CatchFormPage catchFormPage = await CatchFormPage.CreateAsync(this, FishingTrip); await Navigation.PushAsync(catchFormPage); }