/// <summary> /// Adds an item to this category /// </summary> /// <param name="item">Item to add</param> public void AddItem( CategoryItem item ) { Arguments.CheckNotNull( item, "item" ); m_Items.Add( item ); item.ChangeParentCategory( this ); }
/// <summary> /// Removes an item from this category /// </summary> /// <param name="item">Item to remove</param> public void RemoveItem( CategoryItem item ) { Arguments.CheckNotNull( item, "item" ); m_Items.Remove( item ); item.ChangeParentCategory( null ); }