コード例 #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;
            }
        }
コード例 #2
0
ファイル: FileSystemScanner.cs プロジェクト: GodLesZ/svn-dump
		/// <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;
			}
		}