Exemple #1
0
 public DeviceChangeWatcherArgs(
     int hub,
     int port,
     Type deviceClass,
     String deviceId,
     NotifyFilters notifyFilter,
     DeviceManager.DeviceChangedEventHandler method)
 {
     this._Hub          = hub;
     this._Port         = port;
     this._DeviceType   = deviceClass;
     this._DeviceId     = deviceId;
     this._NotifyFilter = notifyFilter;
     this._Delegate     = method;
     this._WatcherId    = Guid.NewGuid();
 }
Exemple #2
0
 public DeviceChangeWatcherArgs(String deviceId, DeviceManager.DeviceChangedEventHandler method)
     : this(0, 0, null, String.Empty, NotifyFilters.Device, method)
 {
 }
Exemple #3
0
 public DeviceChangeWatcherArgs(Type deviceClass, DeviceManager.DeviceChangedEventHandler method)
     : this(0, 0, deviceClass, String.Empty, NotifyFilters.DeviceType, method)
 {
 }
Exemple #4
0
 public DeviceChangeWatcherArgs(int hub, int port, DeviceManager.DeviceChangedEventHandler method)
     : this(hub, port, null, String.Empty, NotifyFilters.Port, method)
 {
 }