C# Class Last.fm_Scrubbler_WPF.ViewModels.FileScrobbleViewModel

ViewModel for the FileScrobbleView.
Inheritance: ScrobbleViewModelBase
ファイルを表示 Open project: coczero/Last.fm-Scrubbler-WPF Class Usage Examples

Public Methods

Method Description
AddFiles ( ) : void

Shows a dialog to select music files. Parses the selected files.

FileScrobbleViewModel ( ) : System

Constructor.

Preview ( ) : void

Shows a preview of the tracks that will be scrobbled.

RemoveFiles ( ) : void

Removes the selected files.

Scrobble ( ) : System.Threading.Tasks.Task

Scrobbles the selected tracks.

SelectAll ( ) : void

Marks all tracks as "ToScrobble".

SelectNone ( ) : void

Marks all tracks as not "ToScrobble".

Private Methods

Method Description
CreateScrobbles ( ) : List

Creates the list of the tracks that will be scrobbled.

IsSelectedChanged ( object sender, EventArgs e ) : void

Notifies the UI that the IsSelected property of a LoadedFileViewModel has changed.

ToScrobbleChanged ( object sender, EventArgs e ) : void

Notifies the UI that the ToScrobble property of a LoadedFileViewModel has changed.

Method Details

AddFiles() public method

Shows a dialog to select music files. Parses the selected files.
public AddFiles ( ) : void
return void

FileScrobbleViewModel() public method

Constructor.
public FileScrobbleViewModel ( ) : System
return System

Preview() public method

Shows a preview of the tracks that will be scrobbled.
public Preview ( ) : void
return void

RemoveFiles() public method

Removes the selected files.
public RemoveFiles ( ) : void
return void

Scrobble() public method

Scrobbles the selected tracks.
public Scrobble ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SelectAll() public method

Marks all tracks as "ToScrobble".
public SelectAll ( ) : void
return void

SelectNone() public method

Marks all tracks as not "ToScrobble".
public SelectNone ( ) : void
return void