C# Class Last.fm_Scrubbler_WPF.ViewModels.CSVScrobbleViewModel

ViewModel for the Views.CSVScrobbleView.
Inheritance: ScrobbleViewModelBase
Afficher le fichier Open project: coczero/Last.fm-Scrubbler-WPF Class Usage Examples

Méthodes publiques

Свойство Type Description
Formats string[]

Méthodes publiques

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

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

Constructor.
public CSVScrobbleViewModel ( ) : IF.Lastfm.Core.Objects
Résultat IF.Lastfm.Core.Objects

LoadCSVFileDialog() public méthode

Shows a dialog to open a csv file.
public LoadCSVFileDialog ( ) : void
Résultat void

Preview() public méthode

Previews the tracks that will be scrobbled.
public Preview ( ) : void
Résultat void

Scrobble() public méthode

Scrobbles the selected scrobbles.
public Scrobble ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SelectAll() public méthode

Marks all scrobbles as "ToScrobble".
public SelectAll ( ) : void
Résultat void

SelectNone() public méthode

Marks all scrobbles as not "ToScrobble".
public SelectNone ( ) : void
Résultat void

Property Details

Formats public_oe static_oe property

Different formats to try in case TryParse fails.
public static string[] Formats
Résultat string[]