C# Class WeiranZhang.Metropaper.MainViewModel

Inheritance: INotifyPropertyChanged
Mostra file Open project: weiran/Metropaper Class Usage Examples

Public Methods

Method Description
LoadData ( ) : void

Creates and adds a few ItemViewModel objects into the Items collection.

LoadDataFromWeb ( ) : void
MainViewModel ( ) : System
RemoveItem ( BookmarkViewModel bookmarkViewModel ) : void
RemoveItem ( BookmarkViewModel bookmarkViewModel, SortedObservableCollection bookmarksCollection ) : void

This removes an item from the view model and local storage without actually calling the API.

Private Methods

Method Description
NotifyPropertyChanged ( String propertyName ) : void
UpdateBookmarkCacheStatus ( ) : void
UpdateBookmarksWithData ( IEnumerable newBookmarks ) : void

Method Details

LoadData() public method

Creates and adds a few ItemViewModel objects into the Items collection.
public LoadData ( ) : void
return void

LoadDataFromWeb() public method

public LoadDataFromWeb ( ) : void
return void

MainViewModel() public method

public MainViewModel ( ) : System
return System

RemoveItem() public method

public RemoveItem ( BookmarkViewModel bookmarkViewModel ) : void
bookmarkViewModel BookmarkViewModel
return void

RemoveItem() public method

This removes an item from the view model and local storage without actually calling the API.
public RemoveItem ( BookmarkViewModel bookmarkViewModel, SortedObservableCollection bookmarksCollection ) : void
bookmarkViewModel BookmarkViewModel
bookmarksCollection SortedObservableCollection
return void