コード例 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         CloseDevice();
         hThread = null;
     }
     disposed = true;
 }
コード例 #2
0
        public HidReader(string deviceName, string devicePath, DataReadCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }

            // Create an instance of HidThread that will manage async reading from the device
            hThread = new HidThread(deviceName, devicePath, callback, OnThreadException);
        }
コード例 #3
0
ファイル: HidReader.cs プロジェクト: ahaha0807/num_banda
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         CloseDevice();
         hThread = null;
     }
     disposed = true;
 }
コード例 #4
0
ファイル: HidReader.cs プロジェクト: ahaha0807/num_banda
        public HidReader(string deviceName, string devicePath, DataReadCallback callback)
        {
            if (callback == null)
                throw new ArgumentNullException("callback");

            // Create an instance of HidThread that will manage async reading from the device
            hThread = new HidThread(deviceName, devicePath, callback, OnThreadException);
        }