// Invoke the DeviceAttachedEvent event; called whenever the device is attached: protected virtual void OnDeviceAttached(ProximityModuleEventArgs e) { if (DeviceAttachedEvent != null) { DeviceAttachedEvent(this, e); } }
void _picpxmod_DeviceDetachedEvent(object sender, ProximityModuleEventArgs e) { this.Dispatcher.Invoke(new UpdateLabelDelegate(updatePmValuesLabel), "USB: Device Detached"); }
// Invoke the DeviceDetachedEvent event; called whenever the device is detached: protected virtual void OnDeviceDetached(ProximityModuleEventArgs e) { if (DeviceDetachedEvent != null) { DeviceDetachedEvent(this, e); } }
void _picpxmod_DeviceAttachedEvent(object sender, ProximityModuleEventArgs e) { this.Dispatcher.Invoke(new UpdateLabelDelegate(updatePmValuesLabel), "USB: Device Attached"); deviceAttached = true; panMksLast = 0; tiltMksLast = 0; }