Exemplo n.º 1
0
        public async void ShowRecipes(object obj)
        {
            Recipes recip = (Recipes)obj;

            if (recip != null)
            {
                App.ItemDetailViewModel.GetDetails(recip);
                await Navi.PushPage(PageFac.GetPage(Pages.Items));
            }
        }
Exemplo n.º 2
0
        public async void Scan()
        {
            var scanPage = new ZXingScannerPage();

            scanPage.OnScanResult += (result) => {
                // Stop scanning
                scanPage.IsScanning = false;

                // Pop the page and show the result
                Device.BeginInvokeOnMainThread(() => {
                    Navi.PopModal();
                    App.UserDialogService.AlertAsync(result.Text, "Scanned Barcode", "OK");
                });
            };

            // Navigate to our scanner page
            await Navi.PushPage(scanPage);
        }
Exemplo n.º 3
0
 public async void AddEvent()
 {
     await Navi.PushPage(Page.GetPage(Pages.AddEventPage));
 }
Exemplo n.º 4
0
 private async void Edit()
 {
     App.EditRecipeViewModel.OnNavigatedTo(Item.PKId);
     await Navi.PushPage(PageFac.GetPage(Pages.Edit));
 }