-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDMEventArgs.cs
58 lines (50 loc) · 1.46 KB
/
CDMEventArgs.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
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Notpod.Configuration12;
namespace Notpod
{
/// <summary>
/// Event arguments class for Connected Device Managers.
/// </summary>
public class CDMEventArgs : EventArgs
{
private DriveInfo drive;
private Device device;
/// <summary>
/// Create a new instance of CDMEventArgs.
/// </summary>
public CDMEventArgs()
: this(null, null)
{
}
/// <summary>
/// Create a new instance of CDMEventArgs.
/// </summary>
/// <param name="drive">Information on the drive for this event.</param>
/// <param name="device">Informatioon on the device for this event.</param>
public CDMEventArgs(DriveInfo drive, Device device)
: base()
{
this.device = device;
this.drive = drive;
}
/// <summary>
/// Accessor for the DriveInfo describing the drive involved in the event.
/// </summary>
public DriveInfo Drive
{
get { return drive; }
set { drive = value; }
}
/// <summary>
/// Accessor for the device involved in the event.
/// </summary>
public Device Device
{
get { return device; }
set { device = value; }
}
}
}