Exemplo n.º 1
0
 /// <summary>
 /// Is called when the connection to a device is lost
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 void DeviceLost(object sender, DeviceEventArgs args)
 {
     RemoveDeviceDelegate RemoveDeviceInstance = new RemoveDeviceDelegate(RemoveDevice);
     this.Invoke(RemoveDeviceInstance, new object[] { args.Device });
 }
Exemplo n.º 2
0
        /// <summary>
        /// Is called when the connection to a device is lost
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void DeviceLost(object sender, DeviceEventArgs args)
        {
            RemoveDeviceDelegate RemoveDeviceInstance = new RemoveDeviceDelegate(RemoveDevice);

            this.Invoke(RemoveDeviceInstance, new object[] { args.Device });
        }