C# Class OIShoppingListWinPhone.DataModel.ShoppingList

Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Show file Open project: openintents/shoppinglist_winphone Class Usage Examples

Private Properties

Property Type Description
NotifyPropertyChanged void
NotifyPropertyChanging void

Public Methods

Method Description
FilterItemsCollection ( ) : void

Filter existing ListItems collection with corresponding application settings. If you filter your collection with this method - collection will be sorted automatically. To prevent doubling of sorting DON'T call SortItemsCollection method after it.

ShoppingList ( ) : System
SortItemsCollection ( ) : void

Sort existing ListItems collection with corresponding application settings

UpdateListStoreLabels ( ) : void
UpdateListTags ( ) : void

Updating ShoppingList.Tags property. Calls when the ShoppingList.ListItems collection was changed and it's necessary to update list of unique list tags

UpdatePrice ( ) : void

Public method for updating CheckedCount, CheckedPrice and TotalPrice. This method invokes when changing list items collection, items price and item status

Private Methods

Method Description
NotifyPropertyChanged ( String propertyName ) : void
NotifyPropertyChanging ( String propertyName ) : void

Method Details

FilterItemsCollection() public method

Filter existing ListItems collection with corresponding application settings. If you filter your collection with this method - collection will be sorted automatically. To prevent doubling of sorting DON'T call SortItemsCollection method after it.
public FilterItemsCollection ( ) : void
return void

ShoppingList() public method

public ShoppingList ( ) : System
return System

SortItemsCollection() public method

Sort existing ListItems collection with corresponding application settings
public SortItemsCollection ( ) : void
return void

UpdateListStoreLabels() public method

public UpdateListStoreLabels ( ) : void
return void

UpdateListTags() public method

Updating ShoppingList.Tags property. Calls when the ShoppingList.ListItems collection was changed and it's necessary to update list of unique list tags
public UpdateListTags ( ) : void
return void

UpdatePrice() public method

Public method for updating CheckedCount, CheckedPrice and TotalPrice. This method invokes when changing list items collection, items price and item status
public UpdatePrice ( ) : void
return void