Example #1
0
        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);
        }
Example #2
0
 public void NotifyNewLoad()
 {
     attachedListener?.NotifyNewLoad();
     NewLoad?.Invoke(this, EventArgs.Empty);
 }