Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public DeviceChangeWatcherArgs(String deviceId, DeviceManager.DeviceChangedEventHandler method)
     : this(0, 0, null, String.Empty, NotifyFilters.Device, method)
 {
 }
Exemplo n.º 3
0
 public DeviceChangeWatcherArgs(Type deviceClass, DeviceManager.DeviceChangedEventHandler method)
     : this(0, 0, deviceClass, String.Empty, NotifyFilters.DeviceType, method)
 {
 }
Exemplo n.º 4
0
 public DeviceChangeWatcherArgs(int hub, int port, DeviceManager.DeviceChangedEventHandler method)
     : this(hub, port, null, String.Empty, NotifyFilters.Port, method)
 {
 }