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

C# Core.ScanEventArgs类代码示例

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

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



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

示例1: OnCompleteFile

 private void OnCompleteFile(string file)
 {
     CompletedFileHandler completedFile = this.CompletedFile;
     if (completedFile != null)
     {
         ScanEventArgs e = new ScanEventArgs(file);
         completedFile(this, e);
         this.alive_ = e.ContinueRunning;
     }
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:10,代码来源:FileSystemScanner.cs


示例2: OnCompletedFile

 public bool OnCompletedFile(string file)
 {
     bool continueRunning = true;
     CompletedFileHandler completedFile = this.CompletedFile;
     if (completedFile != null)
     {
         ScanEventArgs e = new ScanEventArgs(file);
         completedFile(this, e);
         continueRunning = e.ContinueRunning;
     }
     return continueRunning;
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:12,代码来源:FastZipEvents.cs


示例3: OnProcessFile

 public bool OnProcessFile(string file)
 {
     bool continueRunning = true;
     ProcessFileHandler processFile = this.ProcessFile;
     if (processFile != null)
     {
         ScanEventArgs e = new ScanEventArgs(file);
         processFile(this, e);
         continueRunning = e.ContinueRunning;
     }
     return continueRunning;
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:12,代码来源:FastZipEvents.cs


示例4: OnProcessFile

		/// <summary>
		/// Raises the ProcessFileEvent.
		/// </summary>
		/// <param name="file">The file for this event.</param>
		public void OnProcessFile(string file)
		{
			if ( ProcessFile != null ) {
				ScanEventArgs args = new ScanEventArgs(file);
				ProcessFile(this, args);
			}
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:11,代码来源:FastZip.cs


示例5: ProcessFile

        void ProcessFile(object sender, ScanEventArgs e)
        {
            if ( (events_ != null) && (events_.ProcessFile != null) ) {
                events_.ProcessFile(sender, e);
            }

            if ( e.ContinueRunning ) {
                ZipEntry entry = entryFactory_.MakeFileEntry(e.Name);
                outputStream_.PutNextEntry(entry);
                AddFileContents(e.Name);
            }
        }
开发者ID:svn2github,项目名称:awb,代码行数:12,代码来源:FastZip.cs


示例6: ProcessFile

 void ProcessFile(object sender, ScanEventArgs e)
 {
     Console.WriteLine(e.Name);
 }
开发者ID:JoeCooper,项目名称:SharpZipLib.Portable,代码行数:4,代码来源:Main.cs


示例7: OnCompletedFile

		/// <summary>
        /// Fires the <see cref="CompletedFile"/> delegate
		/// </summary>
		/// <param name="file">The file whose processing has been completed.</param>
		/// <returns>A boolean indicating if execution should continue or not.</returns>
		public bool OnCompletedFile(string file)
		{
			bool result = true;
			CompletedFileHandler handler = CompletedFile;
			if ( handler != null ) {
				ScanEventArgs args = new ScanEventArgs(file);
				handler(this, args);
				result = args.ContinueRunning;
			}
			return result;
		}
开发者ID:AlmatoolboxCE,项目名称:AlmaStyleFix,代码行数:16,代码来源:FastZip.cs


示例8: OnCompleteFile

        /// <summary>
        /// Raise the complete file event
        /// </summary>
        /// <param name="file">The file name</param>
        void OnCompleteFile(string file)
        {
            CompletedFileHandler handler = CompletedFile;

            if (handler != null)
            {
                ScanEventArgs args = new ScanEventArgs(file);
                handler(this, args);
                alive_ = args.ContinueRunning;
            }
        }
开发者ID:yh200212121212,项目名称:ILSPY-code,代码行数:15,代码来源:FileSystemScanner.cs


示例9: OnProcessFile

		/// <summary>
		/// Raise the ProcessFile event.
		/// </summary>
		/// <param name="file">The file name.</param>
		public void OnProcessFile(string file)
		{
			if ( ProcessFile != null ) {
				ScanEventArgs args = new ScanEventArgs(file);
				ProcessFile(this, args);
				alive_ = args.ContinueRunning;
			}
		}
开发者ID:CMU-SAFARI,项目名称:MemSchedSim,代码行数:12,代码来源:FileSystemScanner.cs


示例10: OnProcessFile

 private void OnProcessFile(string file)
 {
     ProcessFileHandler processFile = this.ProcessFile;
     if (processFile != null)
     {
         ScanEventArgs e = new ScanEventArgs(file);
         processFile(this, e);
         this.alive_ = e.ContinueRunning;
     }
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:10,代码来源:FileSystemScanner.cs


示例11: ProcessFileMethod

        private void ProcessFileMethod(object sender, ScanEventArgs args)
        {
            _uptoFileCount++;
            int percentCompleted = _uptoFileCount * 100 / _totalFileCount;
            // do something here with a progress bar

            // file counts are easier as sizes take more work to calculate, and compression levels vary by file type
            string fileName = args.Name;
            // To terminate the process, set args.ContinueRunning = false
            if (fileName == "stop on this file")
                args.ContinueRunning = false;

        }
开发者ID:elefantstudio-se,项目名称:H-ENC-Encryption,代码行数:13,代码来源:MainWindow.xaml.cs


示例12: ProcessFile

 private void ProcessFile(object sender, ScanEventArgs e)
 {
     _output.Output("Processing file: " + e.Name);
 }
开发者ID:p-golab,项目名称:Bounce.MsDeploy,代码行数:4,代码来源:MsDeployPackage.cs


示例13: ProcessFile

 private void ProcessFile(object sender, ScanEventArgs e)
 {
     if ((this.events_ != null) && (this.events_.ProcessFile != null))
     {
         this.events_.ProcessFile(sender, e);
     }
     if (e.ContinueRunning)
     {
         try
         {
             using (FileStream stream = File.Open(e.Name, FileMode.Open, FileAccess.Read, FileShare.Read))
             {
                 ZipEntry entry = this.entryFactory_.MakeFileEntry(e.Name);
                 this.outputStream_.PutNextEntry(entry);
                 this.AddFileContents(e.Name, stream);
             }
         }
         catch (Exception exception)
         {
             if (this.events_ == null)
             {
                 this.continueRunning_ = false;
                 throw;
             }
             this.continueRunning_ = this.events_.OnFileFailure(e.Name, exception);
         }
     }
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:28,代码来源:FastZip.cs


示例14: ProcessFile

		/// <summary>
		/// Callback for adding a new file.
		/// </summary>
		/// <param name="sender">The scanner calling this delegate.</param>
		/// <param name="args">The event arguments.</param>
		void ProcessFile(object sender, ScanEventArgs args)
		{
			if ( !silent_ )
			{
				Console.WriteLine(args.Name);
			}
			activeZipFile_.Add(args.Name);
		}
开发者ID:dengchangtao,项目名称:hydronumerics,代码行数:13,代码来源:zf.cs


示例15: ProcessFile

 /// <summary>
 /// Callback for adding a new file.
 /// </summary>
 /// <param name="sender">The scanner calling this delegate.</param>
 /// <param name="args">The event arguments.</param>
 void ProcessFile(object sender, ScanEventArgs args)
 {
     activeZipFile_.Add(args.Name);
 }
开发者ID:polserver,项目名称:poltools,代码行数:9,代码来源:Databackup.cs


示例16: OnProcessFile

        /// <summary>
        /// Fires the <see cref="ProcessFile">ProcessFile delegate</see>.
        /// </summary>
        /// <param name="file">The file being processed.</param>
        /// <returns>A boolean indicating if execution should continue or not.</returns>
        public bool OnProcessFile(string file)
        {
            bool result = true;
            ProcessFileHandler handler = ProcessFile;

            if (handler != null) {
                var args = new ScanEventArgs(file);
                handler(this, args);
                result = args.ContinueRunning;
            }
            return result;
        }
开发者ID:icsharpcode,项目名称:SharpZipLib,代码行数:17,代码来源:FastZip.cs


示例17: OnCompleteFile

		/// <summary>
		/// Raise the complete file event
		/// </summary>
		/// <param name="file">The file name</param>
		void OnCompleteFile(string file)
		{
			if (CompletedFile != null)
			{
				ScanEventArgs args = new ScanEventArgs(file);
				CompletedFile(this, args);
				alive_ = args.ContinueRunning;
			}
		}
开发者ID:jiangguang5201314,项目名称:VMukti,代码行数:13,代码来源:FileSystemScanner.cs


示例18: ProcessFile

 private void ProcessFile(object sender, ScanEventArgs e)
 {
     if (e.ContinueRunning)
     {
         using (FileStream stream = File.OpenRead(e.Name))
         {
             ZipEntry entry = entryFactory_.MakeFileEntry(e.Name);
             outputStream_.PutNextEntry(entry);
             AddFileContents(stream);
         }
     }
 }
开发者ID:rxantos,项目名称:tesv-snip,代码行数:12,代码来源:FastZip.cs


示例19: ProcessFile

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


示例20: OnProcessFile

        /// <summary>
        /// Raise the ProcessFile event.
        /// </summary>
        /// <param name="file">The file name.</param>
        void OnProcessFile(string file)
        {
            ProcessFileHandler handler = ProcessFile;

            if ( handler!= null ) {
                ScanEventArgs args = new ScanEventArgs(file);
                handler(this, args);
                alive_ = args.ContinueRunning;
            }
        }
开发者ID:yh200212121212,项目名称:ILSPY-code,代码行数:14,代码来源:FileSystemScanner.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Core.ScanFailureEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Core.DirectoryEventArgs类代码示例发布时间: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