forked from EddieDemon/BNSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InformationEventArgs.cs
47 lines (43 loc) · 1.24 KB
/
InformationEventArgs.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace BNSharp
{
/// <summary>
/// Specifies the contract for event handlers that want to listen to the Information event.
/// </summary>
/// <param name="sender">The object that raised the event.</param>
/// <param name="e">The event arguments.</param>
public delegate void InformationEventHandler(object sender, InformationEventArgs e);
/// <summary>
/// Specifies informational event arguments.
/// </summary>
[Serializable]
[DataContract]
public class InformationEventArgs : BaseEventArgs
{
#region fields
[DataMember(Name = "Information")]
private string m_info;
#endregion
/// <summary>
/// Initializes a new <see>InformationEventArgs</see>.
/// </summary>
/// <param name="info">The information to pass.</param>
public InformationEventArgs(string info)
{
m_info = info;
}
/// <summary>
/// Gets the information for the event.
/// </summary>
public string Information
{
get
{
return m_info;
}
}
}
}