Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/clovershell-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'LibWinUsb/MonoLibUsb/Profile/AddRemoveEventArgs.cs')
-rw-r--r--LibWinUsb/MonoLibUsb/Profile/AddRemoveEventArgs.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/LibWinUsb/MonoLibUsb/Profile/AddRemoveEventArgs.cs b/LibWinUsb/MonoLibUsb/Profile/AddRemoveEventArgs.cs
new file mode 100644
index 0000000..3f6f2d0
--- /dev/null
+++ b/LibWinUsb/MonoLibUsb/Profile/AddRemoveEventArgs.cs
@@ -0,0 +1,34 @@
+using System;
+
+namespace MonoLibUsb.Profile
+{
+ /// <summary>
+ /// Describes a device arrival/removal notification event
+ /// </summary>
+ public class AddRemoveEventArgs : EventArgs
+ {
+ private readonly AddRemoveType mAddRemoveType;
+ private readonly MonoUsbProfile mMonoUSBProfile;
+
+ internal AddRemoveEventArgs(MonoUsbProfile monoUSBProfile, AddRemoveType addRemoveType)
+ {
+ mMonoUSBProfile = monoUSBProfile;
+ mAddRemoveType = addRemoveType;
+ }
+ /// <summary>
+ /// The <see cref ="MonoUsbProfile"/> that was added or removed.
+ /// </summary>
+ public MonoUsbProfile MonoUSBProfile
+ {
+ get { return mMonoUSBProfile; }
+ }
+
+ /// <summary>
+ /// The type of event that occured.
+ /// </summary>
+ public AddRemoveType EventType
+ {
+ get { return mAddRemoveType; }
+ }
+ }
+} \ No newline at end of file