Esempio n. 1
0
 async Task ConfirmRestoreCategory()
 {
     try
     {
         await OnCategoryRestoreConfirmed.InvokeAsync(selectedCategory);
     }
     finally
     {
         selectedCategory = null;
     }
 }
        async Task RestoreCategory(CategoryListModel.ListItem category)
        {
            loading = true;

            try
            {
                await Client.RestoreCategory(category.Id);
                await LoadCategories(queryModel);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Esempio n. 3
0
 void RestoreCategory(CategoryListModel.ListItem item)
 {
     selectedCategory = item;
     confirmRestoreModal.Show();
 }
Esempio n. 4
0
 void DeleteCategory(CategoryListModel.ListItem item)
 {
     selectedCategory = item;
     confirmDeleteModal.Show();
 }
Esempio n. 5
0
 async Task OpenCategoryDetail(CategoryListModel.ListItem item) => await OnCategoryDetailOpened.InvokeAsync(item);
        void OpenCategoryDetail(CategoryListModel.ListItem category)
        {
            var url = $"catalog/categories/{category.Id}";

            Navigation.NavigateTo(url);
        }