public virtual void CurrentPlaylistChange(WMPLib.WMPPlaylistChangeEventType change) { _WMPOCXEvents_CurrentPlaylistChangeEvent currentplaylistchangeEvent = new _WMPOCXEvents_CurrentPlaylistChangeEvent(change); this.parent.RaiseOnCurrentPlaylistChange(this.parent, currentplaylistchangeEvent); }
public _WMPOCXEvents_StringCollectionChangeEvent(object pdispStringCollection, WMPLib.WMPStringCollectionChangeEventType change, int lCollectionIndex) { this.pdispStringCollection = pdispStringCollection; this.change = change; this.lCollectionIndex = lCollectionIndex; }
private OpResult do_basic_list(OpResult or, WMPLib.IWMPStringCollection list, string list_type, string template, string default_template) { int result_count = list.count; or.AppendFormat("{0}", basic_replacer(getTemplate(template + ".H", ""), "", "", result_count, -1)); // Header string c_last = " "; for (int j = 0; j < list.count; j++) { string list_item = list.Item(j); if (list_item.Length > 0) { string s_out = ""; if (first_letter(list_item) != c_last) { if (j > 0) { s_out = getTemplate(template + ".Alpha-", ""); s_out = basic_replacer(s_out, list_type, list.Item(j - 1), result_count, j); s_out = basic_replacer(s_out, "letter", c_last, result_count, j); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); // Alpha- } c_last = first_letter(list_item); s_out = getTemplate(template + ".Alpha+", ""); s_out = basic_replacer(s_out, list_type, list_item, result_count, j); s_out = basic_replacer(s_out, "letter", c_last, result_count, j); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); // Alpha + } s_out = getTemplate(template + ".Entry", default_template); s_out = basic_replacer(s_out, list_type, list_item, result_count, j); s_out = basic_replacer(s_out, "letter", c_last, result_count, j); s_out = do_conditional_replace(s_out, "all_filters", request_params); s_out = do_conditional_replace(s_out, "genreFilter", genre_filter); s_out = do_conditional_replace(s_out, "artistFilter", artist_filter); s_out = do_conditional_replace(s_out, "albumFilter", album_filter); //opResult.AppendFormat("artist={0}", artists.Item(j)); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); // Entry } } if (result_count > 0) // Close the final alpha grouping { string s_out = getTemplate(template + ".Alpha-", ""); s_out = basic_replacer(s_out, list_type, list.Item(result_count - 1), result_count, result_count); s_out = basic_replacer(s_out, "letter", c_last, result_count, result_count); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); // Alpha- } return or; }
public _WMPOCXEvents_DeviceSyncStateChangeEvent(WMPLib.IWMPSyncDevice pDevice, WMPLib.WMPSyncState newState) { this.pDevice = pDevice; this.newState = newState; }
public _WMPOCXEvents_LibraryDisconnectEvent(WMPLib.IWMPLibrary pLibrary) { this.pLibrary = pLibrary; }
public _WMPOCXEvents_DeviceDisconnectEvent(WMPLib.IWMPSyncDevice pDevice) { this.pDevice = pDevice; }
public _WMPOCXEvents_DeviceStatusChangeEvent(WMPLib.IWMPSyncDevice pDevice, WMPLib.WMPDeviceStatus newStatus) { this.pDevice = pDevice; this.newStatus = newStatus; }
public virtual void FolderScanStateChange(WMPLib.WMPFolderScanState wmpfss) { _WMPOCXEvents_FolderScanStateChangeEvent folderscanstatechangeEvent = new _WMPOCXEvents_FolderScanStateChangeEvent(wmpfss); this.parent.RaiseOnFolderScanStateChange(this.parent, folderscanstatechangeEvent); }
public virtual void LibraryDisconnect(WMPLib.IWMPLibrary pLibrary) { _WMPOCXEvents_LibraryDisconnectEvent librarydisconnectEvent = new _WMPOCXEvents_LibraryDisconnectEvent(pLibrary); this.parent.RaiseOnLibraryDisconnect(this.parent, librarydisconnectEvent); }
public virtual void DeviceSyncError(WMPLib.IWMPSyncDevice pDevice, object pMedia) { _WMPOCXEvents_DeviceSyncErrorEvent devicesyncerrorEvent = new _WMPOCXEvents_DeviceSyncErrorEvent(pDevice, pMedia); this.parent.RaiseOnDeviceSyncError(this.parent, devicesyncerrorEvent); }
public virtual void DeviceSyncStateChange(WMPLib.IWMPSyncDevice pDevice, WMPLib.WMPSyncState newState) { _WMPOCXEvents_DeviceSyncStateChangeEvent devicesyncstatechangeEvent = new _WMPOCXEvents_DeviceSyncStateChangeEvent(pDevice, newState); this.parent.RaiseOnDeviceSyncStateChange(this.parent, devicesyncstatechangeEvent); }
public virtual void DeviceStatusChange(WMPLib.IWMPSyncDevice pDevice, WMPLib.WMPDeviceStatus newStatus) { _WMPOCXEvents_DeviceStatusChangeEvent devicestatuschangeEvent = new _WMPOCXEvents_DeviceStatusChangeEvent(pDevice, newStatus); this.parent.RaiseOnDeviceStatusChange(this.parent, devicestatuschangeEvent); }
public virtual void DeviceEstimation(WMPLib.IWMPSyncDevice pDevice, int hrResult, long qwEstimatedUsedSpace, long qwEstimatedSpace) { _WMPOCXEvents_DeviceEstimationEvent deviceestimationEvent = new _WMPOCXEvents_DeviceEstimationEvent(pDevice, hrResult, qwEstimatedUsedSpace, qwEstimatedSpace); this.parent.RaiseOnDeviceEstimation(this.parent, deviceestimationEvent); }
public virtual void DeviceDisconnect(WMPLib.IWMPSyncDevice pDevice) { _WMPOCXEvents_DeviceDisconnectEvent devicedisconnectEvent = new _WMPOCXEvents_DeviceDisconnectEvent(pDevice); this.parent.RaiseOnDeviceDisconnect(this.parent, devicedisconnectEvent); }
public _WMPOCXEvents_CreatePartnershipCompleteEvent(WMPLib.IWMPSyncDevice pDevice, int hrResult) { this.pDevice = pDevice; this.hrResult = hrResult; }
public virtual void PlaylistChange(object playlist, WMPLib.WMPPlaylistChangeEventType change) { _WMPOCXEvents_PlaylistChangeEvent playlistchangeEvent = new _WMPOCXEvents_PlaylistChangeEvent(playlist, change); this.parent.RaiseOnPlaylistChange(this.parent, playlistchangeEvent); }
public _WMPOCXEvents_CurrentPlaylistChangeEvent(WMPLib.WMPPlaylistChangeEventType change) { this.change = change; }
public virtual void StringCollectionChange(object pdispStringCollection, WMPLib.WMPStringCollectionChangeEventType change, int lCollectionIndex) { _WMPOCXEvents_StringCollectionChangeEvent stringcollectionchangeEvent = new _WMPOCXEvents_StringCollectionChangeEvent(pdispStringCollection, change, lCollectionIndex); this.parent.RaiseOnStringCollectionChange(this.parent, stringcollectionchangeEvent); }
public _WMPOCXEvents_DeviceEstimationEvent(WMPLib.IWMPSyncDevice pDevice, int hrResult, long qwEstimatedUsedSpace, long qwEstimatedSpace) { this.pDevice = pDevice; this.hrResult = hrResult; this.qwEstimatedUsedSpace = qwEstimatedUsedSpace; this.qwEstimatedSpace = qwEstimatedSpace; }
public _WMPOCXEvents_CdromBurnErrorEvent(WMPLib.IWMPCdromBurn pCdromBurn, int hrError) { this.pCdromBurn = pCdromBurn; this.hrError = hrError; }
public _WMPOCXEvents_DeviceSyncErrorEvent(WMPLib.IWMPSyncDevice pDevice, object pMedia) { this.pDevice = pDevice; this.pMedia = pMedia; }
public _WMPOCXEvents_CdromBurnMediaErrorEvent(WMPLib.IWMPCdromBurn pCdromBurn, object pMedia) { this.pCdromBurn = pCdromBurn; this.pMedia = pMedia; }
public _WMPOCXEvents_FolderScanStateChangeEvent(WMPLib.WMPFolderScanState wmpfss) { this.wmpfss = wmpfss; }
public _WMPOCXEvents_CdromBurnStateChangeEvent(WMPLib.IWMPCdromBurn pCdromBurn, WMPLib.WMPBurnState wmpbs) { this.pCdromBurn = pCdromBurn; this.wmpbs = wmpbs; }
public _WMPOCXEvents_PlaylistChangeEvent(object playlist, WMPLib.WMPPlaylistChangeEventType change) { this.playlist = playlist; this.change = change; }
public _WMPOCXEvents_CdromRipMediaErrorEvent(WMPLib.IWMPCdromRip pCdromRip, object pMedia) { this.pCdromRip = pCdromRip; this.pMedia = pMedia; }
public void add_song_to_album(WMPLib.IWMPMedia media_item) { if (albumYear == "" || albumYear.Length < 4) albumYear = media_item.getItemInfo("WM/OriginalReleaseYear"); if (albumYear == "" || albumYear.Length < 4) albumYear = media_item.getItemInfo("WM/Year"); genre = media_item.getItemInfo("WM/Genre"); albumGenre_add(genre); if (albumImage.Length == 0) findAlbumCover(media_item.sourceURL); albumTrackCount++; artistTrackCount++; trackCount++; song = media_item.getItemInfo("Title"); songLocation = media_item.sourceURL; songTrackNumber = media_item.getItemInfo("WM/TrackNumber"); songLength = media_item.durationString; string s = media_item.getItemInfo("WM/AlbumTitle"); if (album != s) nextAlbum = s; s = media_item.getItemInfo("WM/AlbumArtist"); if (s == "") s = media_item.getItemInfo("Author"); if (artist != s) nextArtist = s; return; }
public _WMPOCXEvents_CdromRipStateChangeEvent(WMPLib.IWMPCdromRip pCdromRip, WMPLib.WMPRipState wmprs) { this.pCdromRip = pCdromRip; this.wmprs = wmprs; }
private OpResult do_detailed_list(OpResult or, WMPLib.IWMPMedia media_item, int idx, string template) { string artist = ""; string album = ""; string letter = ""; bool added = false; int index = idx; if (index < 0) index = the_state.trackCount; if (media_item != null) { artist = media_item.getItemInfo("WM/AlbumArtist"); if (artist == "") artist = media_item.getItemInfo("Author"); album = media_item.getItemInfo("WM/AlbumTitle"); letter = first_letter(artist); } // End of artist? if (artist != the_state.artist) { if (the_state.album.Length > 0) { var s_out = replacer(getTemplate(template + ".Album-", DEFAULT_DETAIL_ALBUM_END), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } if (the_state.artist.Length > 0) { var s_out = replacer(getTemplate(template + ".Artist-", DEFAULT_DETAIL_ARTIST_END), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } // End of current aplha? if (letter != the_state.letter && the_state.letter.Length == 1) { var s_out = replacer(getTemplate(template + ".Alpha-", ""), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } if (index >= 0) { the_state.resetArtist(artist); the_state.resetAlbum(album); } if (media_item != null) { the_state.add_song_to_album(media_item); added = true; // Start new aplha? if (letter != the_state.letter) { the_state.letter = letter; var s_out = replacer(getTemplate(template + ".Alpha+", ""), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } // Start new artist if (the_state.artist.Length > 0) { var s_out = replacer(getTemplate(template + ".Artist+", DEFAULT_DETAIL_ARTIST_START), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } // Start new album if (the_state.album.Length > 0) { var s_out = replacer(getTemplate(template + ".Album+", DEFAULT_DETAIL_ALBUM_START), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } } } // End of album? else if (album != the_state.album) { if (the_state.album.Length > 0) { var s_out = replacer(getTemplate(template + ".Album-", DEFAULT_DETAIL_ALBUM_END), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } if (index >= 0) the_state.resetAlbum(album); if (media_item != null) { the_state.add_song_to_album(media_item); added = true; if (the_state.album.Length > 0) { var s_out = replacer(getTemplate(template + ".Album+", DEFAULT_DETAIL_ALBUM_START), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } } } // Do track: if (media_item != null) { if (!added) the_state.add_song_to_album(media_item); var s_out = replacer(getTemplate(template + ".Entry", DEFAULT_DETAIL_SONG), index); if (s_out.Length > 0) or.AppendFormat("{0}", s_out); } return or; }
public virtual void CreatePartnershipComplete(WMPLib.IWMPSyncDevice pDevice, int hrResult) { _WMPOCXEvents_CreatePartnershipCompleteEvent createpartnershipcompleteEvent = new _WMPOCXEvents_CreatePartnershipCompleteEvent(pDevice, hrResult); this.parent.RaiseOnCreatePartnershipComplete(this.parent, createpartnershipcompleteEvent); }