C# Класс 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
Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

LocalStoreModel() публичный Метод

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
Результат System

StoreFile() публичный Метод

Method used to store a new track in the repository
public StoreFile ( string filename ) : bool
filename string Filename of the file to add
Результат bool