public void LoadSongsSync(SongLoader loader) { NewLoad?.Invoke(this, EventArgs.Empty); var songs = loader.LoadSongs(); LoadInitiated?.Invoke(this, songs.Count); UpdateLibrary(songs, false); library.InitialiseParts(); LoadCompleted?.Invoke(this, EventArgs.Empty); }
public void NotifyNewLoad() { attachedListener?.NotifyNewLoad(); NewLoad?.Invoke(this, EventArgs.Empty); }