Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        public static Task <CatchFormPage> CreateAsync(CatchesListPage caller, FishingTrip fishingTrip, Catch _catch)
        {
            CatchFormPage instance = new CatchFormPage(caller, fishingTrip, _catch);

            return(instance.InitializeAsync());
        }
Ejemplo n.º 4
0
        private async void BtnAddCatch_OnClicked(object sender, EventArgs e)
        {
            CatchFormPage catchFormPage = await CatchFormPage.CreateAsync(this, FishingTrip);

            await Navigation.PushAsync(catchFormPage);
        }