C# Class WeiranZhang.Metropaper.MainViewModel

Inheritance: INotifyPropertyChanged
Afficher le fichier Open project: weiran/Metropaper Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
NotifyPropertyChanged ( String propertyName ) : void
UpdateBookmarkCacheStatus ( ) : void
UpdateBookmarksWithData ( IEnumerable newBookmarks ) : void

Method Details

LoadData() public méthode

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

LoadDataFromWeb() public méthode

public LoadDataFromWeb ( ) : void
Résultat void

MainViewModel() public méthode

public MainViewModel ( ) : System
Résultat System

RemoveItem() public méthode

public RemoveItem ( BookmarkViewModel bookmarkViewModel ) : void
bookmarkViewModel BookmarkViewModel
Résultat void

RemoveItem() public méthode

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
Résultat void