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