/// <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(); }
void _WMPOCXEvents.LibraryDisconnect (IWMPLibrary pLibrary) { if (LibraryDisconnectDelegate!=null) LibraryDisconnectDelegate(pLibrary); }