コード例 #1
0
        /// <inheritdoc />
        /// <summary>
        /// Internal constructor of managed <see cref="T:RGB.NET.Devices.Corsair.CorsairMouseRGBDeviceInfo" />.
        /// </summary>
        /// <param name="deviceIndex">The index of the <see cref="T:RGB.NET.Devices.Corsair.CorsairMouseRGBDevice" />.</param>
        /// <param name="nativeInfo">The native <see cref="T:RGB.NET.Devices.Corsair.Native._CorsairDeviceInfo" />-struct</param>
        internal CorsairMouseRGBDeviceInfo(int deviceIndex, _CorsairDeviceInfo nativeInfo)
            : base(deviceIndex, RGBDeviceType.Mouse, nativeInfo)
        {
            this.PhysicalLayout = (CorsairPhysicalMouseLayout)nativeInfo.physicalLayout;

            Image = new Uri(PathHelper.GetAbsolutePath($@"Images\Corsair\Mice\{Model.Replace(" ", string.Empty).ToUpper()}.png"), UriKind.Absolute);
        }
コード例 #2
0
 /// <inheritdoc />
 /// <summary>
 /// Internal constructor of managed <see cref="T:RGB.NET.Devices.Corsair.CorsairMouseRGBDeviceInfo" />.
 /// </summary>
 /// <param name="deviceIndex">The index of the <see cref="T:RGB.NET.Devices.Corsair.CorsairMouseRGBDevice" />.</param>
 /// <param name="nativeInfo">The native <see cref="T:RGB.NET.Devices.Corsair.Native._CorsairDeviceInfo" />-struct</param>
 internal CorsairMouseRGBDeviceInfo(int deviceIndex, _CorsairDeviceInfo nativeInfo)
     : base(deviceIndex, RGBDeviceType.Mouse, nativeInfo)
 {
     this.PhysicalLayout = (CorsairPhysicalMouseLayout)nativeInfo.physicalLayout;
 }
コード例 #3
0
 /// <summary>
 /// Internal constructor of managed CorsairDeviceInfo.
 /// </summary>
 /// <param name="nativeInfo">The native CorsairDeviceInfo-struct</param>
 internal CorsairMouseDeviceInfo(_CorsairDeviceInfo nativeInfo)
     : base(nativeInfo)
 {
     this.PhysicalLayout = (CorsairPhysicalMouseLayout)nativeInfo.physicalLayout;
 }
コード例 #4
0
 /// <inheritdoc />
 /// <summary>
 /// Internal constructor of managed <see cref="T:RGB.NET.Devices.Corsair.CorsairMouseRGBDeviceInfo" />.
 /// </summary>
 /// <param name="deviceIndex">The index of the <see cref="T:RGB.NET.Devices.Corsair.CorsairMouseRGBDevice" />.</param>
 /// <param name="nativeInfo">The native <see cref="T:RGB.NET.Devices.Corsair.Native._CorsairDeviceInfo" />-struct</param>
 /// <param name="modelCounter">A dictionary containing counters to create unique names for equal devices models.</param>
 internal CorsairMouseRGBDeviceInfo(int deviceIndex, _CorsairDeviceInfo nativeInfo, Dictionary <string, int> modelCounter)
     : base(deviceIndex, RGBDeviceType.Mouse, nativeInfo, modelCounter)
 {
     this.PhysicalLayout = (CorsairPhysicalMouseLayout)nativeInfo.physicalLayout;
 }
コード例 #5
0
 /// <summary>
 /// Internal constructor of managed <see cref="CorsairMouseDeviceInfo" />.
 /// </summary>
 /// <param name="nativeInfo">The native <see cref="_CorsairDeviceInfo" />-struct</param>
 internal CorsairMouseDeviceInfo(_CorsairDeviceInfo nativeInfo)
     : base(nativeInfo)
 {
     this.PhysicalLayout = (CorsairPhysicalMouseLayout)nativeInfo.physicalLayout;
 }