Event arguments for directories.
Inheritance: ScanEventArgs
コード例 #1
0
 private void OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     if (this.ProcessDirectory != null)
     {
         DirectoryEventArgs e = new DirectoryEventArgs(directory, hasMatchingFiles);
         this.ProcessDirectory(this, e);
         this.alive_ = e.ContinueRunning;
     }
 }
コード例 #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)
 {
     if (ProcessDirectory != null)
     {
         DirectoryEventArgs args = new DirectoryEventArgs(directory, hasMatchingFiles);
         ProcessDirectory(this, args);
         alive_ = args.ContinueRunning;
     }
 }
コード例 #3
0
 private void OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     ProcessDirectoryHandler processDirectory = this.ProcessDirectory;
     if (processDirectory != null)
     {
         DirectoryEventArgs e = new DirectoryEventArgs(directory, hasMatchingFiles);
         processDirectory(this, e);
         this.alive_ = e.ContinueRunning;
     }
 }
コード例 #4
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;
            }
        }
コード例 #5
0
        // Token: 0x0600079D RID: 1949 RVA: 0x0002C5F0 File Offset: 0x0002A7F0
        private void OnProcessDirectory(string directory, bool hasMatchingFiles)
        {
            ProcessDirectoryHandler processDirectory = this.ProcessDirectory;

            if (processDirectory != null)
            {
                DirectoryEventArgs directoryEventArgs = new DirectoryEventArgs(directory, hasMatchingFiles);
                processDirectory(this, directoryEventArgs);
                this.alive_ = directoryEventArgs.ContinueRunning;
            }
        }
コード例 #6
0
ファイル: FastZipEvents.cs プロジェクト: huaminglee/myyyyshop
 public bool OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     bool continueRunning = true;
     ProcessDirectoryHandler processDirectory = this.ProcessDirectory;
     if (processDirectory != null)
     {
         DirectoryEventArgs e = new DirectoryEventArgs(directory, hasMatchingFiles);
         processDirectory(this, e);
         continueRunning = e.ContinueRunning;
     }
     return continueRunning;
 }
コード例 #7
0
ファイル: FastZip.cs プロジェクト: svn2github/awb
 /// <summary>
 /// Fires the <see cref="ProcessDirectory">process directory</see> delegate.
 /// </summary>
 /// <param name="directory">The directory being processed.</param>
 /// <param name="hasMatchingFiles">Flag indicating if the directory has matching files as determined by the current filter.</param>
 /// <returns>A <see cref="bool"/> of true if the operation should continue; false otherwise.</returns>
 public bool OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     bool result = true;
     if ( ProcessDirectory != null ) {
         DirectoryEventArgs args = new DirectoryEventArgs(directory, hasMatchingFiles);
         ProcessDirectory(this, args);
         result = args.ContinueRunning;
     }
     return result;
 }
コード例 #8
0
ファイル: FastZip.cs プロジェクト: icsharpcode/SharpZipLib
 /// <summary>
 /// Fires the <see cref="ProcessDirectory">process directory</see> delegate.
 /// </summary>
 /// <param name="directory">The directory being processed.</param>
 /// <param name="hasMatchingFiles">Flag indicating if the directory has matching files as determined by the current filter.</param>
 /// <returns>A <see cref="bool"/> of true if the operation should continue; false otherwise.</returns>
 public bool OnProcessDirectory(string directory, bool hasMatchingFiles)
 {
     bool result = true;
     EventHandler<DirectoryEventArgs> handler = ProcessDirectory;
     if (handler != null) {
         var args = new DirectoryEventArgs(directory, hasMatchingFiles);
         handler(this, args);
         result = args.ContinueRunning;
     }
     return result;
 }
コード例 #9
0
 void ListDir(object sender, DirectoryEventArgs e)
 {
     if ( !e.HasMatchingFiles ) {
         Console.WriteLine("Dir:{0}", e.Name);
     }
 }
コード例 #10
0
ファイル: FastZip.cs プロジェクト: svn2github/awb
        void ProcessDirectory(object sender, DirectoryEventArgs e)
        {
            if ( !e.HasMatchingFiles && CreateEmptyDirectories ) {
                if ( events_ != null ) {
                    events_.OnProcessDirectory(e.Name, e.HasMatchingFiles);
                }

                if ( e.ContinueRunning ) {
                    if (e.Name != sourceDirectory_) {
                        ZipEntry entry = entryFactory_.MakeDirectoryEntry(e.Name);
                        outputStream_.PutNextEntry(entry);
                    }
                }
            }
        }
コード例 #11
0
ファイル: Unzip.cs プロジェクト: jacderida/JobSystem
 private void ProcessDirectory(object sender, DirectoryEventArgs e)
 {
     if (!e.HasMatchingFiles)
     {
         Log.LogMessage(Properties.Resources.UnzipExtracted, e.Name);
     }
 }
コード例 #12
0
 void ProcessDirectory(object sender, DirectoryEventArgs e)
 {
     if ( !e.HasMatchingFiles ) {
         Console.WriteLine(e.Name);
     }
 }
コード例 #13
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;
            }
        }
コード例 #14
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>
		public void OnProcessDirectory(string directory, bool hasMatchingFiles)
		{
			if ( ProcessDirectory != null ) {
				DirectoryEventArgs args = new DirectoryEventArgs(directory, hasMatchingFiles);
				ProcessDirectory(this, args);
				alive_ = args.ContinueRunning;
			}
		}
コード例 #15
0
ファイル: FastZip.cs プロジェクト: huaminglee/myyyyshop
 private void ProcessDirectory(object sender, DirectoryEventArgs e)
 {
     if (!e.HasMatchingFiles && this.CreateEmptyDirectories)
     {
         if (this.events_ != null)
         {
             this.events_.OnProcessDirectory(e.Name, e.HasMatchingFiles);
         }
         if (e.ContinueRunning && (e.Name != this.sourceDirectory_))
         {
             ZipEntry entry = this.entryFactory_.MakeDirectoryEntry(e.Name);
             this.outputStream_.PutNextEntry(entry);
         }
     }
 }
コード例 #16
0
ファイル: FastZip.cs プロジェクト: KonajuGames/SharpLang
		void ProcessDirectory(object sender, DirectoryEventArgs e)
		{
			if ( !e.HasMatchingFiles && createEmptyDirectories ) {
				if ( events != null ) {
					events.OnProcessDirectory(e.Name, e.HasMatchingFiles);
				}
				
				if (e.Name != sourceDirectory) {
					string cleanedName = nameTransform.TransformDirectory(e.Name);
					ZipEntry entry = new ZipEntry(cleanedName);
					outputStream.PutNextEntry(entry);
				}
			}
		}
コード例 #17
0
ファイル: zf.cs プロジェクト: dengchangtao/hydronumerics
		/// <summary>
		/// Callback for adding a new directory.
		/// </summary>
		/// <param name="sender">The scanner calling this delegate.</param>
		/// <param name="args">The event arguments.</param>
		/// <remarks>Directories are only added if they are empty and
		/// the user has specified that empty directories are to be added.</remarks>
		void ProcessDirectory(object sender, DirectoryEventArgs args)
		{
			if ( !args.HasMatchingFiles && addEmptyDirectoryEntries_ )
			{
				activeZipFile_.AddDirectory(args.Name);
			}
		}