Пример #1
0
        private void PlexClient_OnLibraryChange(object sender, LibraryChangeEventArgs e)
        {
            currentAlbumArt = e.AlbumArt;
            section         = e.Section;
            currentTitle1   = e.Title1;
            currentTitle2   = e.Title2;
            isDirectory     = e.IsDirectory;
            previouskey     = e.PreviousKey;

            sectionItemNames.Clear();

            foreach (var item in section)
            {
                sectionItemNames.Add(item.Name);
            }

            LibraryUpdate(null, new LibraryUpdateEventArgs(sectionItemNames, currentTitle1, currentTitle2, currentAlbumArt, Name));
        }
Пример #2
0
 internal void Fire(LibraryChangeEventArgs e)
 {
     onLibraryChange(null, e);
 }