예제 #1
0
        private async void Delete()
        {
            if (await UserDialogs.Instance.ConfirmAsync("Are you sure you want to remove this recipe? once its gone, it's gone for good!"))
            {
                UserDialogs.Instance.ShowLoading("Deleteing...");

                DataRepository.Instance.Delete <Recipes>(ThisRecipe);
                App.RecipesViewModel.OnNavigatedTo();

                await Navi.PopToRoot();

                UserDialogs.Instance.HideLoading();
            }
        }