public void SetMusicFile(MusicFileEditor musicFileEditor) { if (_coverSearch.State != CoverSearchState.Wait) throw new InvalidOperationException("Can't set a MusicFile while another is processing or canceled."); _musicFileEditor = musicFileEditor; _coverSearch.LaunchSearch(_musicFileEditor.EditedAlbum); }
public CoverWizard(MusicFileEditor musicFileEditor, GalleryManager galleryManager) { _musicFileEditor = musicFileEditor; _coverSearch = new CoverSearcher(galleryManager); _indexSelected = -1; }