예제 #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);
        }
예제 #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;
        }
예제 #3
0
        public static Task <CatchFormPage> CreateAsync(CatchesListPage caller, FishingTrip fishingTrip, Catch _catch)
        {
            CatchFormPage instance = new CatchFormPage(caller, fishingTrip, _catch);

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

            await Navigation.PushAsync(catchFormPage);
        }