Esempio n. 1
0
		/// <summary>
		/// The dispatcher of the <see cref="FilesystemManager.SourcesModified"/> event
		/// </summary>
		/// <param name="track">The track that was either added, removed or updated</param>
		/// <param name="modType">The modification type of the source</param>
		/// <param name="callback">The callbacks and their respective parameters that will be sent along with the SourceModified event</param>
		private static void DispatchSourceModified(TrackData track, SourceModificationType modType, List<KeyValuePair<ScannerCallback, object>> callbacks)
		{
			if (SourceModified != null)
				SourceModified(null, new SourceModifiedEventArgs(track, modType, callbacks));
		}
Esempio n. 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="SourcesModifiedEventArgs"/> class
		/// </summary>
		/// <param name="track">The track that was either added or removed</param>
		/// <param name="modType">The modification type of the source</param>
		/// <param name="callback">The callbacks and their respective parameters which to call when the event is handled</param>
		public SourceModifiedEventArgs(TrackData track, SourceModificationType modType, List<KeyValuePair<ScannerCallback, object>> callbacks)
		{
			Track = track;
			ModificationType = modType;
			Callbacks = callbacks;
		}
Esempio n. 3
0
		/// <summary>
		/// The dispatcher of the <see cref="FilesystemManager.SourcesModified"/> event
		/// </summary>
		/// <param name="track">The track that was either added, removed or updated</param>
		/// <param name="modType">The modification type of the source</param>
		private static void DispatchSourceModified(TrackData track, SourceModificationType modType)
		{
			DispatchSourceModified(track, modType, new List<KeyValuePair<ScannerCallback, object>>());
		}