示例#1
0
 public HelperOpenRGBDevice(int idx, OpenRGBDevice dev)
 {
     Index      = idx;
     OrgbDevice = dev;
     Colors     = Enumerable.Range(0, dev.Leds.Length).Select(_ => new OpenRGBColor()).ToArray();
     Mapping    = new DK[dev.Leds.Length];
 }
示例#2
0
 protected AbstractOpenRGBDeviceInfo(OpenRGBDevice openRGBDevice)
 {
     OpenRGBDevice = openRGBDevice;
     DeviceType    = Helper.GetRgbNetDeviceType(openRGBDevice.Type);
     Manufacturer  = Helper.GetVendorName(openRGBDevice);
     Model         = Helper.GetModelName(openRGBDevice);
     DeviceName    = DeviceHelper.CreateDeviceName(Manufacturer, Model);
 }
 public OpenRGBUpdateQueue(IDeviceUpdateTrigger updateTrigger, int deviceid, OpenRGBClient client, OpenRGBDevice device)
     : base(updateTrigger)
 {
     _deviceid = deviceid;
     _openRGB  = client;
     _device   = device;
     _colors   = Enumerable.Range(0, _device.Colors.Length)
                 .Select(_ => new OpenRGBColor())
                 .ToArray();
 }
示例#4
0
        public OpenRGBDeviceInfo(int deviceIndex, RGBDeviceType deviceType, OpenRGBDevice device, Dictionary <string, int> modelCounter)
        {
            OpenRGBDeviceIndex = deviceIndex;
            DeviceType         = deviceType;
            OpenRGBDevice      = device;

            if (!string.IsNullOrEmpty(OpenRGBDevice.Vendor))
            {
                Manufacturer = OpenRGBDevice.Vendor;
                Model        = OpenRGBDevice.Name.Replace(OpenRGBDevice.Vendor, "").Trim();
            }
            else
            {
                Manufacturer = "OpenRGB";
                Model        = OpenRGBDevice.Name;
            }

            DeviceName = GetUniqueModelName(modelCounter);
        }
 public OpenRGBZoneDeviceInfo(OpenRGBDevice device) : base(device)
 {
 }
示例#6
0
 public OpenRGBGenericDeviceInfo(OpenRGBDevice device) : base(device)
 {
 }