Esempio n. 1
0
        public async void OnEdit(object sender, EventArgs e)
        {
            ItemsViewModel vm = this.BindingContext as ItemsViewModel;

            var          mi = ((MenuItem)sender);
            BowlingBalls p  = mi.CommandParameter as BowlingBalls;
            var          x  = await DisplayAlert("Editing", "Editing " + p.MODELNAME + "'s details", "OK", "Cancel");

            if (x)
            {
                //vm.GoTo_ECommand(p);
                ItemsListView.ItemsSource = await App.Database.GetBallsAsync();
            }
        }
 public async void Init(int id)
 {
     SelectedBall = new BowlingBalls();
 }