C# Class wpf_player.LocalStoreModel

Class that implements the ViewModel in the MVVM pattern. This class is used to access peer functionality related to the track repository
Inheritance: INotifyPropertyChanged
ファイルを表示 Open project: zencoders/sambatyon Class Usage Examples

Public Methods

Method Description
LocalStoreModel ( Peer p = null ) : System

Constructor that initializes the commands and the local reference to the peer

StoreFile ( string filename ) : bool

Method used to store a new track in the repository

Private Methods

Method Description
NotifyPropertyChanged ( String info ) : void

Method called when a property has been changed. This method rises the event PropertyChange.

refreshList ( object sender = null ) : void

Backend method for the Refresh List Command. This method cleans the local list, reloads all data from the database and then it updates the list.

Method Details

LocalStoreModel() public method

Constructor that initializes the commands and the local reference to the peer
public LocalStoreModel ( Peer p = null ) : System
p PeerLibrary.Peer Peer that will be used to get information
return System

StoreFile() public method

Method used to store a new track in the repository
public StoreFile ( string filename ) : bool
filename string Filename of the file to add
return bool