C# Class Last.fm_Scrubbler_WPF.ViewModels.CSVScrobbleViewModel

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

Public Properties

Property Type Description
Formats string[]

Public Methods

Method Description
CSVScrobbleViewModel ( ) : IF.Lastfm.Core.Objects

Constructor.

LoadCSVFileDialog ( ) : void

Shows a dialog to open a csv file.

Preview ( ) : void

Previews the tracks that will be scrobbled.

Scrobble ( ) : System.Threading.Tasks.Task

Scrobbles the selected scrobbles.

SelectAll ( ) : void

Marks all scrobbles as "ToScrobble".

SelectNone ( ) : void

Marks all scrobbles as not "ToScrobble".

Private Methods

Method Description
CreateScrobbles ( ) : List

Create a list with tracks that will be scrobbled.

LoadCSVFile ( string path ) : void

Loads and parses a csv file.

ToScrobbleChanged ( object sender, EventArgs e ) : void

Notifies the UI that "ToScrobble" has changed.

Method Details

CSVScrobbleViewModel() public method

Constructor.
public CSVScrobbleViewModel ( ) : IF.Lastfm.Core.Objects
return IF.Lastfm.Core.Objects

LoadCSVFileDialog() public method

Shows a dialog to open a csv file.
public LoadCSVFileDialog ( ) : void
return void

Preview() public method

Previews the tracks that will be scrobbled.
public Preview ( ) : void
return void

Scrobble() public method

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

SelectAll() public method

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

SelectNone() public method

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

Property Details

Formats public_oe static_oe property

Different formats to try in case TryParse fails.
public static string[] Formats
return string[]