Ejemplo n.º 1
0
 ///////////////////////////////////////////////////////////////////////////////////////////
 private Device(DEVICE_TYPE mDeviceType)
 {
     this.m_DeviceType     = mDeviceType;
     this.m_DeviceTypeDesc = CAN.FindDeviceTypeKey(mDeviceType);
     this.m_DeviceIndex    = DeviceGroup.CreateInstance().GetNewDeviceIndex(mDeviceType);
     this.m_IsDeviceOpen   = false;
     this.p_DeviceInfo     = new BOARD_INFO();
 }
Ejemplo n.º 2
0
 ///////////////////////////////////////////////////////////////////////////////////////////
 public static DeviceGroup CreateInstance()
 {
     if (p_DeviceGroup == null)
     {
         lock (locker)
         {
             if (p_DeviceGroup == null)
             {
                 p_DeviceGroup = new DeviceGroup();
             }
         }
     }
     return(p_DeviceGroup);
 }