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