本文整理汇总了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;未经允许,请勿转载。 |
请发表评论