• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Core.DirectoryEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ICSharpCode.SharpZipLib.Core.DirectoryEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DirectoryEventArgs类的具体用法?C# DirectoryEventArgs怎么用?C# DirectoryEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DirectoryEventArgs类属于ICSharpCode.SharpZipLib.Core命名空间,在下文中一共展示了DirectoryEventArgs类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnProcessDirectory

 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;
     }
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:10,代码来源:FileSystemScanner.cs


示例2: OnProcessDirectory

 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;
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:12,代码来源:FastZipEvents.cs


示例3: OnProcessDirectory

 /// <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;
 }
开发者ID:svn2github,项目名称:awb,代码行数:16,代码来源:FastZip.cs


示例4: ProcessDirectory

        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);
                    }
                }
            }
        }
开发者ID:svn2github,项目名称:awb,代码行数:15,代码来源:FastZip.cs


示例5: ListDir

 void ListDir(object sender, DirectoryEventArgs e)
 {
     if ( !e.HasMatchingFiles ) {
         Console.WriteLine("Dir:{0}", e.Name);
     }
 }
开发者ID:JoeCooper,项目名称:SharpZipLib.Portable,代码行数:6,代码来源:Main.cs


示例6: ProcessDirectory

 void ProcessDirectory(object sender, DirectoryEventArgs e)
 {
     if ( !e.HasMatchingFiles ) {
         Console.WriteLine(e.Name);
     }
 }
开发者ID:JoeCooper,项目名称:SharpZipLib.Portable,代码行数:6,代码来源:Main.cs


示例7: OnProcessDirectory

        /// <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;
            }
        }
开发者ID:yh200212121212,项目名称:ILSPY-code,代码行数:15,代码来源:FileSystemScanner.cs


示例8: OnProcessDirectory

		/// <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;
			}
		}
开发者ID:CMU-SAFARI,项目名称:MemSchedSim,代码行数:13,代码来源:FileSystemScanner.cs


示例9: OnProcessDirectory

 /// <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;
 }
开发者ID:icsharpcode,项目名称:SharpZipLib,代码行数:17,代码来源:FastZip.cs


示例10: ProcessDirectory

		/// <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);
			}
		}
开发者ID:dengchangtao,项目名称:hydronumerics,代码行数:14,代码来源:zf.cs


示例11: ProcessDirectory

		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);
				}
			}
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:14,代码来源:FastZip.cs


示例12: ProcessDirectory

 private void ProcessDirectory(object sender, DirectoryEventArgs e)
 {
     if (!e.HasMatchingFiles)
     {
         Log.LogMessage(Properties.Resources.UnzipExtracted, e.Name);
     }
 }
开发者ID:jacderida,项目名称:JobSystem,代码行数:7,代码来源:Unzip.cs


示例13: ProcessDirectory

 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);
         }
     }
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:15,代码来源:FastZip.cs



注:本文中的ICSharpCode.SharpZipLib.Core.DirectoryEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Core.ScanEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Checksums.Crc32类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap