protected virtual void Dispose(bool disposing)
 {
     if (ptr != IntPtr.Zero)
     {
         DeleteDevice(ptr);
         ptr = IntPtr.Zero;
     }
     if (disposing)
     {
         modeFunc    = null;
         statusFunc  = null;
         sensorsFunc = null;
         infoFunc    = null;
         resultFunc  = null;
     }
 }
 public void SetStatus(TIntEventFunc statusFunc)
 {
     this.statusFunc = statusFunc;
     SetStatus(ptr, statusFunc);
 }
 static extern void SetStatus(IntPtr pWrapper, TIntEventFunc statusFunc);