//using RGB.NET.Core; //using RGB.NET.Devices.Asus.Native; //namespace RGB.NET.Devices.Asus //{ // /// // /// // /// Represents a Asus dram. // /// // public class AsusDramRGBDevice : AsusRGBDevice // { // #region Properties & Fields // /// // /// Gets information about the . // /// // public AsusDramRGBDeviceInfo DramDeviceInfo { get; } // #endregion // #region Constructors // /// // /// // /// Initializes a new instance of the class. // /// // /// The specific information provided by Asus for the DRAM. // internal AsusDramRGBDevice(AsusDramRGBDeviceInfo info) // : base(info) // { // this.DramDeviceInfo = info; // } // #endregion // #region Methods // /// // protected override void InitializeLayout() // { // //TODO DarthAffe 21.10.2017: Look for a good default layout // int ledCount = _AsusSDK.GetGPULedCount(DramDeviceInfo.Handle); // for (int i = 0; i < ledCount; i++) // InitializeLed(new AsusLedId(this, AsusLedIds.DramLed1 + i, i), new Rectangle(i * 10, 0, 10, 10)); // //TODO DarthAffe 21.10.2017: We don't know the model, how to save layouts and images? // ApplyLayoutFromFile(PathHelper.GetAbsolutePath($@"Layouts\Asus\Drams\{DramDeviceInfo.Model.Replace(" ", string.Empty).ToUpper()}.xml"), // null, PathHelper.GetAbsolutePath(@"Images\Asus\Drams")); // } // /// // protected override void ApplyColorData() => _AsusSDK.SetDramColor(DramDeviceInfo.Handle, ColorData); // #endregion // } //}