private void ChangeSelectedProductCategory(SelectedProductCategory SelectedProductCategory) { ProductCategoryList = ProductCategories.GetAll().ToSvenTechCollection(); SelectedProduct.ProductCategory = SelectedProductCategory.ProductCategory; SelectedProduct.RefProductCategoryId = SelectedProductCategory.ProductCategory.ProductCategoryId; RaisePropertyChanged("SelectedProduct"); }
private SvenTechCollection <ProductCategory> LoadAllProductCategories() { SvenTechCollection <ProductCategory> allProductCategories = new SvenTechCollection <ProductCategory>(); return(ProductCategories.GetAll().ToSvenTechCollection()); }