/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="windowManager">WindowManager used to display dialogs.</param>
 /// <param name="parserFactory">The factory used to create <see cref="ITextFieldParser"/>.</param>
 public CSVScrobbleViewModel(IExtendedWindowManager windowManager, ITextFieldParserFactory parserFactory)
     : base(windowManager, "CSV Scrobbler")
 {
     _parserFactory = parserFactory;
     Scrobbles      = new ObservableCollection <ParsedCSVScrobbleViewModel>();
     Duration       = 1;
     ScrobbleMode   = CSVScrobbleMode.ImportMode;
 }
Ejemplo n.º 2
0
 public FileParser(IDelimiterLogic delimiterLogic, ITextFieldParserFactory parserFactory)
 {
     this.delimiterLogic = delimiterLogic;
     this.parserFactory  = parserFactory;
 }