public override void Unload()
 {
     if (_device.DeviceId != 0)
     {
         ThreeSpaceInterop.StopStreaming(_device.DeviceId, ref _device.TimeStamp);
         ThreeSpaceInterop.CloseDevice(_device.DeviceId);
     }
 }
 public void Dispose()
 {
     if (_isDisposed)
     {
         return;
     }
     if (IsConnected)
     {
         ThreeSpaceInterop.CloseDevice(_deviceId);
         IsConnected = false;
     }
     _isDisposed = true;
 }