-
Notifications
You must be signed in to change notification settings - Fork 169
/
Copy pathCancelProgressEventArgs.cs
32 lines (29 loc) · 1.11 KB
/
CancelProgressEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.ComponentModel;
namespace Nexus.Client.Util
{
/// <summary>
/// Describes the arguments passed to a cancelable progress update event.
/// </summary>
public class CancelProgressEventArgs : CancelEventArgs
{
/// <summary>
/// Gets the completion percentage being reported.
/// </summary>
/// <value>The completion percentage being reported.</value>
public float PercentComplete { get; protected set; }
/// <summary>
/// A simple contructor that initializes the object with the given values.
/// </summary>
/// <param name="p_fltPercentComplete">he completion percentage being reported.</param>
public CancelProgressEventArgs(float p_fltPercentComplete)
{
PercentComplete = p_fltPercentComplete;
}
}
/// <summary>
/// The handler for cancellable progress update events.
/// </summary>
/// <param name="sender">The object that raised the event.</param>
/// <param name="e">A <see cref="CancelProgressEventArgs"/> describing the event arguments.</param>
public delegate void CancelProgressEventHandler(object sender, CancelProgressEventArgs e);
}