Пример #1
0
 public override void Dispose()
 {
     if (m_deviceIdentification != null)
         m_deviceIdentification.InternalDispose();
     m_deviceIdentification = null;
     base.Dispose();
 }
Пример #2
0
 internal Device(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     if (IsCapabilitySupported(Capabilities.DeviceIdentification))
         m_deviceIdentification = new DeviceIdentificationCapability(this);
     else
         m_deviceIdentification = null;
 }
Пример #3
0
 internal Device(Context context, IntPtr nodeHandle, bool addRef) :
     base(context, nodeHandle, addRef)
 {
     if (IsCapabilitySupported(Capabilities.DeviceIdentification))
     {
         m_deviceIdentification = new DeviceIdentificationCapability(this);
     }
     else
     {
         m_deviceIdentification = null;
     }
 }