Ejemplo n.º 1
0
        /// <summary>
        /// Raise the ProcessDirectory event.
        /// </summary>
        /// <param name="directory">The directory name.</param>
        /// <param name="hasMatchingFiles">Flag indicating if the directory has matching files.</param>
        void OnProcessDirectory(string directory, bool hasMatchingFiles)
        {
            ProcessDirectoryHandler handler = ProcessDirectory;

            if (handler != null)
            {
                DirectoryEventArgs args = new DirectoryEventArgs(directory, hasMatchingFiles);
                handler(this, args);
                alive_ = args.ContinueRunning;
            }
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Raise the ProcessDirectory event.
		/// </summary>
		/// <param name="directory">The directory name.</param>
		/// <param name="hasMatchingFiles">Flag indicating if the directory has matching files.</param>
		void OnProcessDirectory( string directory, bool hasMatchingFiles ) {
			ProcessDirectoryHandler handler = ProcessDirectory;

			if( handler != null ) {
				DirectoryEventArgs args = new DirectoryEventArgs( directory, hasMatchingFiles );
				handler( this, args );
				alive_ = args.ContinueRunning;
			}
		}