Example #1
0
        public int OnDeviceAdded(string DeviceId)
        {
            DeviceAddedEventArgs arg = new DeviceAddedEventArgs(DeviceId);

            _DeviceEnumerator.FireDeviceAddedEvent(arg);
            return(0);
        }
        internal void FireDeviceAddedEvent(DeviceAddedEventArgs e)
        {
            DeviceAddedEventHandler del = OnDeviceAdded;

            if (del != null)
            {
                del(this, e);
            }
        }
 internal void FireDeviceAddedEvent(DeviceAddedEventArgs e)
 {
     DeviceAddedEventHandler del = OnDeviceAdded;
     if (del != null) del(this, e);
 }
 public int OnDeviceAdded(string DeviceId)
 {
     DeviceAddedEventArgs arg = new DeviceAddedEventArgs(DeviceId);
     _DeviceEnumerator.FireDeviceAddedEvent(arg);
     return 0;
 }