Exemple #1
0
 protected virtual void OnLibraryChanged(LibraryChangedEventArgs e)
 {
     this.outputSongs.ResetBindings();
     if (raiseLibraryChangedEvent)
     {
         if (LibraryChanged != null)
         {
             LibraryChanged(this, e);
         }
     }
 }
Exemple #2
0
        protected void library_LibraryChanged(object sender, LibraryChangedEventArgs e)
        {
            List <int> toBeRemoved = new List <int>();

            for (int i = 0; i < songPaths.Count; i++)
            {
                if (!libraryDictionary.ContainsKey(songPaths[i]))
                {
                    toBeRemoved.Add(i);
                }
            }
            toBeRemoved.Sort();
            toBeRemoved.Reverse();
            foreach (int i in toBeRemoved)
            {
                this.Remove(i);
            }
        }
Exemple #3
0
 protected virtual void OnLibraryChanged(LibraryChangedEventArgs e)
 {
     this.outputSongs.ResetBindings();
     if (raiseLibraryChangedEvent)
         if (LibraryChanged != null)
             LibraryChanged(this, e);
 }
Exemple #4
0
 private void library_LibraryChanged(object sender, LibraryChangedEventArgs e)
 {
     UpdateShowingPlaylist(true);
     PopulateShuffleQueue();
     UpdateStatusStip();
 }
Exemple #5
0
 protected void library_LibraryChanged(object sender, LibraryChangedEventArgs e)
 {
     List<int> toBeRemoved = new List<int>();
     for (int i = 0; i < songPaths.Count; i++)
     {
         if (!libraryDictionary.ContainsKey(songPaths[i]))
             toBeRemoved.Add(i);
     }
     toBeRemoved.Sort();
     toBeRemoved.Reverse();
     foreach (int i in toBeRemoved)
         this.Remove(i);
 }