Ejemplo n.º 1
0
        private async Task Initialize()
        {
            PageTitle = "New Order - Subcategories";
            var subCategories = await stocklistService.GetSubCategoryListById(currentCategory.Id);

            SubCategories = null;
            SubCategories = new ObservableCollection <SubCategory>(subCategories);
        }
        private async Task RefreshSubCategories()
        {
            if (currentCategory != null)
            {
                PageTitle = "Overview Stocklist - " + currentCategory.Name;
                var subCategories = await stocklistService.GetSubCategoryListById(currentCategory.Id);

                SubCategories = null;
                SubCategories = new ObservableCollection <SubCategory>(subCategories);
            }
            else
            {
                PageTitle                     = "New Category List";
                currentCategory               = new Category();
                currentCategory.Id            = Guid.NewGuid();
                currentCategory.SubCategories = new List <SubCategory>();
            }
            LoadSubCategoryState();
        }