Skip to content

Commit

Permalink
Tweak to ProgressEventArgs and update to ReadMe.rtf
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreilly committed Aug 29, 2007
1 parent 06fc63b commit 6c6843e
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 147 deletions.
207 changes: 72 additions & 135 deletions doc/ReadMe.rtf

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion samples/cs/CreateZipFile/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/FastZip/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/minibzip2/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/minigzip/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/sz/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/tar/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/zf/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
Expand Down
2 changes: 1 addition & 1 deletion src/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
[assembly: AssemblyCopyright("Copyright 2001-2007 Mike Krueger, John Reilly")]
[assembly: AssemblyTrademark("Copyright 2001-2007 Mike Krueger, John Reilly")]

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]
[assembly: AssemblyInformationalVersionAttribute("0.85.3")]


Expand Down
23 changes: 20 additions & 3 deletions src/Core/FileSystemScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class ProgressEventArgs : EventArgs
/// <summary>
/// Initialise a new instance of <see cref="ScanEventArgs"/>
/// </summary>
/// <param name="name"></param>
/// <param name="name">The file or directory name if known.</param>
/// <param name="processed">The number of bytes processed so far</param>
/// <param name="target">The total number of bytes to process, 0 if not known</param>
public ProgressEventArgs(string name, long processed, long target)
Expand Down Expand Up @@ -117,9 +117,9 @@ public bool ContinueRunning
}

/// <summary>
/// Get a percentage representing the how complete the operation is.
/// Get a percentage representing how much of the <see cref="Target"></see> has been processed
/// </summary>
/// <value>0 to 100 percent; 0 if target is not known.</value>
/// <value>0.0 to 100.0 percent; 0 if target is not known.</value>
public float PercentComplete
{
get
Expand All @@ -134,7 +134,24 @@ public float PercentComplete
}
}
}

/// <summary>
/// The number of bytes processed so far
/// </summary>
public long Processed
{
get { return processed_; }
}

/// <summary>
/// The number of bytes to process.
/// </summary>
/// <remarks>Target may be 0 or negative if the value isnt known.</remarks>
public long Target
{
get { return target_; }
}

#region Instance Fields
string name_;
long processed_;
Expand Down
2 changes: 1 addition & 1 deletion tests/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):

[assembly: AssemblyVersion("0.85.3.364")]
[assembly: AssemblyVersion("0.85.3.365")]

// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
Expand Down

0 comments on commit 6c6843e

Please sign in to comment.