public void AddToCategories(Category category) { base.AddObject("Categories", category); }
// Method does not fire NotifyPropertyChanged public void SetCategorySilent(Category ct) { this._Category = ct; this._CategoryId = ct != null ? ct.Id : 0; }
public static Category CreateCategory(int ID, string name) { Category category = new Category(); category.Id = ID; category.Name = name; return category; }