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]; }
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(); }
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) { }
public OpenRGBGenericDeviceInfo(OpenRGBDevice device) : base(device) { }