Пример #1
0
        /// <summary>
        /// Set a value for the MediaCollection variable based on user settings.
        /// </summary>
        private void GetMediaCollection()
        {
            if (chkLegacyMC.CheckState != CheckState.Checked)
            {
                MediaCollection = Player.mediaCollection;
            }
            else
            {
                IWMPLibrary library = LibSvcs.getLibraryByType(WMPLibraryType.wmpltLocal, 0);
                MediaCollection = library.mediaCollection;
            }

            runCurrentReport();
        }
Пример #2
0
 void _WMPOCXEvents.LibraryDisconnect (IWMPLibrary pLibrary)
 {
   if (LibraryDisconnectDelegate!=null)
     LibraryDisconnectDelegate(pLibrary);
 }