Esempio n. 1
0
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            if (Item.CategoryID.HasValue)
            {
                Colour = (await CategoryDataService.LoadCategory(Item.CategoryID.Value)).Colour;
            }
            else
            {
                Colour = UIConstants.DEFAULT_CATEGORY_COLOUR;
            }
        }