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

            panMksLast = 0;
            tiltMksLast = 0;
        }