Ejemplo n.º 1
0
 /// <summary>
 /// Write an output report to the device.
 /// </summary>
 /// <param name="oOutRep">Output report to write</param>
 protected void Write(OutputReport oOutRep)
 {
     try
     {
         _file.Write(oOutRep.Buffer, 0, oOutRep.BufferLength);
     }
     catch (IOException)
     {
         // The device was removed!
         _handle = IntPtr.Zero;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Write an output report to the device.
 /// </summary>
 /// <param name="oOutRep">Output report to write</param>
 protected void Write(OutputReport oOutRep)
 {
     try
     {
         _file.Write(oOutRep.Buffer, 0, oOutRep.BufferLength);
     }
     catch (IOException)
     {
         // The device was removed!
         _handle = IntPtr.Zero;
     }
 }