private ErrorCode EnumDevices(ref DeviceInformationCollection deviceInfoCollection)
        {
            var errorCode = OfficialApi.EnumDevices(DeviceType.GigeDevice, ref deviceInfoCollection);

            if (errorCode != ErrorCode.MV_OK)
            {
                this.ErrorFailWithReason(errorCode);
            }
            else
            {
                this.InfoSuccess();
            }
            return(errorCode);
        }