mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Anime matrix clock fix
This commit is contained in:
@@ -428,7 +428,7 @@ namespace Starlight.AnimeMatrix
|
|||||||
g.CompositingQuality = CompositingQuality.HighQuality;
|
g.CompositingQuality = CompositingQuality.HighQuality;
|
||||||
g.SmoothingMode = SmoothingMode.AntiAlias;
|
g.SmoothingMode = SmoothingMode.AntiAlias;
|
||||||
|
|
||||||
using (Font font = new Font("Calibri", 14F, GraphicsUnit.Pixel))
|
using (Font font = new Font("Calibri", 13F, GraphicsUnit.Pixel))
|
||||||
{
|
{
|
||||||
SizeF textSize = g.MeasureString(text, font);
|
SizeF textSize = g.MeasureString(text, font);
|
||||||
g.DrawString(text, font, Brushes.White, 4, 0);
|
g.DrawString(text, font, Brushes.White, 4, 0);
|
||||||
|
|||||||
61
app/Aura.cs
61
app/Aura.cs
@@ -1,6 +1,5 @@
|
|||||||
using HidLibrary;
|
using HidLibrary;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using static Starlight.AnimeMatrix.BuiltInAnimation;
|
|
||||||
|
|
||||||
namespace GHelper
|
namespace GHelper
|
||||||
{
|
{
|
||||||
@@ -161,6 +160,14 @@ namespace GHelper
|
|||||||
Color2 = Color.FromArgb(colorCode);
|
Color2 = Color.FromArgb(colorCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static IEnumerable<HidDevice> GetHidDevices(int[] deviceIds)
|
||||||
|
{
|
||||||
|
HidDevice[] HidDeviceList = HidDevices.Enumerate(0x0b05, deviceIds).ToArray();
|
||||||
|
foreach (HidDevice device in HidDeviceList)
|
||||||
|
if (device.IsConnected && device.Description.ToLower().Contains("hid") && device.Capabilities.FeatureReportByteLength >= 64)
|
||||||
|
yield return device;
|
||||||
|
}
|
||||||
|
|
||||||
public static byte[] AuraMessage(int mode, Color color, Color color2, int speed)
|
public static byte[] AuraMessage(int mode, Color color, Color color2, int speed)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -183,17 +190,14 @@ namespace GHelper
|
|||||||
|
|
||||||
public static void ApplyBrightness(int brightness)
|
public static void ApplyBrightness(int brightness)
|
||||||
{
|
{
|
||||||
HidDevice[] HidDeviceList = HidDevices.Enumerate(0x0b05, deviceIds).ToArray();
|
|
||||||
|
|
||||||
byte[] msg = { 0x5d, 0xba, 0xc5, 0xc4, (byte)brightness };
|
byte[] msg = { 0x5d, 0xba, 0xc5, 0xc4, (byte)brightness };
|
||||||
|
|
||||||
foreach (HidDevice device in HidDeviceList)
|
foreach (HidDevice device in GetHidDevices(new int[] { 0x19b6 }))
|
||||||
if (device.IsConnected && device.Description.Contains("HID"))
|
{
|
||||||
{
|
device.OpenDevice();
|
||||||
device.OpenDevice();
|
device.Write(msg);
|
||||||
device.Write(msg);
|
device.CloseDevice();
|
||||||
device.CloseDevice();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Logger.WriteLine("USB-KB = " + BitConverter.ToString(msg));
|
Logger.WriteLine("USB-KB = " + BitConverter.ToString(msg));
|
||||||
|
|
||||||
@@ -204,8 +208,6 @@ namespace GHelper
|
|||||||
|
|
||||||
public static void ApplyAuraPower(bool awake = true, bool boot = false, bool sleep = false, bool shutdown = false)
|
public static void ApplyAuraPower(bool awake = true, bool boot = false, bool sleep = false, bool shutdown = false)
|
||||||
{
|
{
|
||||||
HidDevice[] HidDeviceList = HidDevices.Enumerate(0x0b05, 0x19b6).ToArray();
|
|
||||||
|
|
||||||
List<AuraDev19b6> flags = new List<AuraDev19b6>();
|
List<AuraDev19b6> flags = new List<AuraDev19b6>();
|
||||||
|
|
||||||
if (awake)
|
if (awake)
|
||||||
@@ -244,13 +246,12 @@ namespace GHelper
|
|||||||
|
|
||||||
Debug.WriteLine(BitConverter.ToString(msg));
|
Debug.WriteLine(BitConverter.ToString(msg));
|
||||||
|
|
||||||
foreach (HidDevice device in HidDeviceList)
|
foreach (HidDevice device in GetHidDevices(new int[] { 0x19b6 }))
|
||||||
if (device.IsConnected && device.Description.Contains("HID"))
|
{
|
||||||
{
|
device.OpenDevice();
|
||||||
device.OpenDevice();
|
device.Write(msg);
|
||||||
device.Write(msg);
|
device.CloseDevice();
|
||||||
device.CloseDevice();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Logger.WriteLine("USB-KB = " + BitConverter.ToString(msg));
|
Logger.WriteLine("USB-KB = " + BitConverter.ToString(msg));
|
||||||
|
|
||||||
@@ -259,11 +260,10 @@ namespace GHelper
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void ApplyAura()
|
public static void ApplyAura()
|
||||||
{
|
{
|
||||||
|
|
||||||
HidDevice[] HidDeviceList = HidDevices.Enumerate(0x0b05, deviceIds).ToArray();
|
|
||||||
|
|
||||||
int _speed;
|
int _speed;
|
||||||
|
|
||||||
switch (Speed)
|
switch (Speed)
|
||||||
@@ -279,17 +279,16 @@ namespace GHelper
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
byte[] msg = AuraMessage(Mode, Color1, Color2, _speed);
|
byte[] msg = AuraMessage(Mode, Color1, Color2, _speed);
|
||||||
foreach (HidDevice device in HidDeviceList)
|
|
||||||
if (device.IsConnected && device.Description.Contains("HID"))
|
foreach (HidDevice device in GetHidDevices(deviceIds))
|
||||||
{
|
{
|
||||||
device.OpenDevice();
|
device.OpenDevice();
|
||||||
device.Write(msg);
|
device.Write(msg);
|
||||||
device.Write(MESSAGE_SET);
|
device.Write(MESSAGE_SET);
|
||||||
device.Write(MESSAGE_APPLY);
|
device.Write(MESSAGE_APPLY);
|
||||||
device.CloseDevice();
|
device.CloseDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Program.config.ContainsModel("TUF"))
|
if (Program.config.ContainsModel("TUF"))
|
||||||
Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed);
|
Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed);
|
||||||
|
|||||||
283
app/Fans.Designer.cs
generated
283
app/Fans.Designer.cs
generated
@@ -31,12 +31,12 @@ namespace GHelper
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
ChartArea chartArea13 = new ChartArea();
|
ChartArea chartArea4 = new ChartArea();
|
||||||
Title title13 = new Title();
|
Title title4 = new Title();
|
||||||
ChartArea chartArea14 = new ChartArea();
|
ChartArea chartArea5 = new ChartArea();
|
||||||
Title title14 = new Title();
|
Title title5 = new Title();
|
||||||
ChartArea chartArea15 = new ChartArea();
|
ChartArea chartArea6 = new ChartArea();
|
||||||
Title title15 = new Title();
|
Title title6 = new Title();
|
||||||
panelFans = new Panel();
|
panelFans = new Panel();
|
||||||
labelFansResult = new Label();
|
labelFansResult = new Label();
|
||||||
labelTip = new Label();
|
labelTip = new Label();
|
||||||
@@ -67,6 +67,14 @@ namespace GHelper
|
|||||||
pictureBox1 = new PictureBox();
|
pictureBox1 = new PictureBox();
|
||||||
labelPowerLimits = new Label();
|
labelPowerLimits = new Label();
|
||||||
panelGPU = new Panel();
|
panelGPU = new Panel();
|
||||||
|
panelGPUTemp = new Panel();
|
||||||
|
labelGPUTemp = new Label();
|
||||||
|
labelGPUTempTitle = new Label();
|
||||||
|
trackGPUTemp = new TrackBar();
|
||||||
|
panelGPUBoost = new Panel();
|
||||||
|
labelGPUBoost = new Label();
|
||||||
|
labelGPUBoostTitle = new Label();
|
||||||
|
trackGPUBoost = new TrackBar();
|
||||||
panelGPUMemory = new Panel();
|
panelGPUMemory = new Panel();
|
||||||
labelGPUMemory = new Label();
|
labelGPUMemory = new Label();
|
||||||
labelGPUMemoryTitle = new Label();
|
labelGPUMemoryTitle = new Label();
|
||||||
@@ -78,14 +86,6 @@ namespace GHelper
|
|||||||
panelTitleGPU = new Panel();
|
panelTitleGPU = new Panel();
|
||||||
pictureGPU = new PictureBox();
|
pictureGPU = new PictureBox();
|
||||||
labelGPU = new Label();
|
labelGPU = new Label();
|
||||||
panelGPUBoost = new Panel();
|
|
||||||
labelGPUBoost = new Label();
|
|
||||||
labelGPUBoostTitle = new Label();
|
|
||||||
trackGPUBoost = new TrackBar();
|
|
||||||
panelGPUTemp = new Panel();
|
|
||||||
labelGPUTemp = new Label();
|
|
||||||
labelGPUTempTitle = new Label();
|
|
||||||
trackGPUTemp = new TrackBar();
|
|
||||||
panelFans.SuspendLayout();
|
panelFans.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)picturePerf).BeginInit();
|
((System.ComponentModel.ISupportInitialize)picturePerf).BeginInit();
|
||||||
tableFanCharts.SuspendLayout();
|
tableFanCharts.SuspendLayout();
|
||||||
@@ -102,16 +102,16 @@ namespace GHelper
|
|||||||
panelTitleCPU.SuspendLayout();
|
panelTitleCPU.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
||||||
panelGPU.SuspendLayout();
|
panelGPU.SuspendLayout();
|
||||||
|
panelGPUTemp.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackGPUTemp).BeginInit();
|
||||||
|
panelGPUBoost.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackGPUBoost).BeginInit();
|
||||||
panelGPUMemory.SuspendLayout();
|
panelGPUMemory.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUMemory).BeginInit();
|
((System.ComponentModel.ISupportInitialize)trackGPUMemory).BeginInit();
|
||||||
panelGPUCore.SuspendLayout();
|
panelGPUCore.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUCore).BeginInit();
|
((System.ComponentModel.ISupportInitialize)trackGPUCore).BeginInit();
|
||||||
panelTitleGPU.SuspendLayout();
|
panelTitleGPU.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureGPU).BeginInit();
|
((System.ComponentModel.ISupportInitialize)pictureGPU).BeginInit();
|
||||||
panelGPUBoost.SuspendLayout();
|
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUBoost).BeginInit();
|
|
||||||
panelGPUTemp.SuspendLayout();
|
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUTemp).BeginInit();
|
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// panelFans
|
// panelFans
|
||||||
@@ -211,8 +211,8 @@ namespace GHelper
|
|||||||
//
|
//
|
||||||
// chartGPU
|
// chartGPU
|
||||||
//
|
//
|
||||||
chartArea13.Name = "ChartArea1";
|
chartArea4.Name = "ChartArea1";
|
||||||
chartGPU.ChartAreas.Add(chartArea13);
|
chartGPU.ChartAreas.Add(chartArea4);
|
||||||
chartGPU.Dock = DockStyle.Fill;
|
chartGPU.Dock = DockStyle.Fill;
|
||||||
chartGPU.Location = new Point(2, 350);
|
chartGPU.Location = new Point(2, 350);
|
||||||
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
||||||
@@ -220,13 +220,13 @@ namespace GHelper
|
|||||||
chartGPU.Size = new Size(760, 320);
|
chartGPU.Size = new Size(760, 320);
|
||||||
chartGPU.TabIndex = 17;
|
chartGPU.TabIndex = 17;
|
||||||
chartGPU.Text = "chartGPU";
|
chartGPU.Text = "chartGPU";
|
||||||
title13.Name = "Title1";
|
title4.Name = "Title1";
|
||||||
chartGPU.Titles.Add(title13);
|
chartGPU.Titles.Add(title4);
|
||||||
//
|
//
|
||||||
// chartCPU
|
// chartCPU
|
||||||
//
|
//
|
||||||
chartArea14.Name = "ChartArea1";
|
chartArea5.Name = "ChartArea1";
|
||||||
chartCPU.ChartAreas.Add(chartArea14);
|
chartCPU.ChartAreas.Add(chartArea5);
|
||||||
chartCPU.Dock = DockStyle.Fill;
|
chartCPU.Dock = DockStyle.Fill;
|
||||||
chartCPU.Location = new Point(2, 10);
|
chartCPU.Location = new Point(2, 10);
|
||||||
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
||||||
@@ -234,13 +234,13 @@ namespace GHelper
|
|||||||
chartCPU.Size = new Size(760, 320);
|
chartCPU.Size = new Size(760, 320);
|
||||||
chartCPU.TabIndex = 14;
|
chartCPU.TabIndex = 14;
|
||||||
chartCPU.Text = "chartCPU";
|
chartCPU.Text = "chartCPU";
|
||||||
title14.Name = "Title1";
|
title5.Name = "Title1";
|
||||||
chartCPU.Titles.Add(title14);
|
chartCPU.Titles.Add(title5);
|
||||||
//
|
//
|
||||||
// chartMid
|
// chartMid
|
||||||
//
|
//
|
||||||
chartArea15.Name = "ChartArea3";
|
chartArea6.Name = "ChartArea3";
|
||||||
chartMid.ChartAreas.Add(chartArea15);
|
chartMid.ChartAreas.Add(chartArea6);
|
||||||
chartMid.Dock = DockStyle.Fill;
|
chartMid.Dock = DockStyle.Fill;
|
||||||
chartMid.Location = new Point(2, 690);
|
chartMid.Location = new Point(2, 690);
|
||||||
chartMid.Margin = new Padding(2, 10, 2, 10);
|
chartMid.Margin = new Padding(2, 10, 2, 10);
|
||||||
@@ -248,8 +248,8 @@ namespace GHelper
|
|||||||
chartMid.Size = new Size(760, 322);
|
chartMid.Size = new Size(760, 322);
|
||||||
chartMid.TabIndex = 14;
|
chartMid.TabIndex = 14;
|
||||||
chartMid.Text = "chartMid";
|
chartMid.Text = "chartMid";
|
||||||
title15.Name = "Title3";
|
title6.Name = "Title3";
|
||||||
chartMid.Titles.Add(title15);
|
chartMid.Titles.Add(title6);
|
||||||
chartMid.Visible = false;
|
chartMid.Visible = false;
|
||||||
//
|
//
|
||||||
// labelFans
|
// labelFans
|
||||||
@@ -316,16 +316,16 @@ namespace GHelper
|
|||||||
panelPower.Controls.Add(panelTotal);
|
panelPower.Controls.Add(panelTotal);
|
||||||
panelPower.Controls.Add(panelTitleCPU);
|
panelPower.Controls.Add(panelTitleCPU);
|
||||||
panelPower.Dock = DockStyle.Fill;
|
panelPower.Dock = DockStyle.Fill;
|
||||||
panelPower.Location = new Point(10, 634);
|
panelPower.Location = new Point(10, 652);
|
||||||
panelPower.Name = "panelPower";
|
panelPower.Name = "panelPower";
|
||||||
panelPower.Size = new Size(523, 555);
|
panelPower.Size = new Size(523, 537);
|
||||||
panelPower.TabIndex = 43;
|
panelPower.TabIndex = 43;
|
||||||
//
|
//
|
||||||
// panelApplyPower
|
// panelApplyPower
|
||||||
//
|
//
|
||||||
panelApplyPower.Controls.Add(checkApplyPower);
|
panelApplyPower.Controls.Add(checkApplyPower);
|
||||||
panelApplyPower.Dock = DockStyle.Bottom;
|
panelApplyPower.Dock = DockStyle.Bottom;
|
||||||
panelApplyPower.Location = new Point(0, 463);
|
panelApplyPower.Location = new Point(0, 445);
|
||||||
panelApplyPower.Name = "panelApplyPower";
|
panelApplyPower.Name = "panelApplyPower";
|
||||||
panelApplyPower.Padding = new Padding(10);
|
panelApplyPower.Padding = new Padding(10);
|
||||||
panelApplyPower.Size = new Size(523, 92);
|
panelApplyPower.Size = new Size(523, 92);
|
||||||
@@ -348,7 +348,7 @@ namespace GHelper
|
|||||||
// labelInfo
|
// labelInfo
|
||||||
//
|
//
|
||||||
labelInfo.Dock = DockStyle.Top;
|
labelInfo.Dock = DockStyle.Top;
|
||||||
labelInfo.Location = new Point(0, 368);
|
labelInfo.Location = new Point(0, 342);
|
||||||
labelInfo.Margin = new Padding(4, 0, 4, 0);
|
labelInfo.Margin = new Padding(4, 0, 4, 0);
|
||||||
labelInfo.Name = "labelInfo";
|
labelInfo.Name = "labelInfo";
|
||||||
labelInfo.Padding = new Padding(5);
|
labelInfo.Padding = new Padding(5);
|
||||||
@@ -364,7 +364,7 @@ namespace GHelper
|
|||||||
panelCPU.Controls.Add(label2);
|
panelCPU.Controls.Add(label2);
|
||||||
panelCPU.Controls.Add(trackCPU);
|
panelCPU.Controls.Add(trackCPU);
|
||||||
panelCPU.Dock = DockStyle.Top;
|
panelCPU.Dock = DockStyle.Top;
|
||||||
panelCPU.Location = new Point(0, 232);
|
panelCPU.Location = new Point(0, 206);
|
||||||
panelCPU.Margin = new Padding(4);
|
panelCPU.Margin = new Padding(4);
|
||||||
panelCPU.Name = "panelCPU";
|
panelCPU.Name = "panelCPU";
|
||||||
panelCPU.Size = new Size(523, 136);
|
panelCPU.Size = new Size(523, 136);
|
||||||
@@ -414,7 +414,7 @@ namespace GHelper
|
|||||||
panelTotal.Controls.Add(labelPlatform);
|
panelTotal.Controls.Add(labelPlatform);
|
||||||
panelTotal.Controls.Add(trackTotal);
|
panelTotal.Controls.Add(trackTotal);
|
||||||
panelTotal.Dock = DockStyle.Top;
|
panelTotal.Dock = DockStyle.Top;
|
||||||
panelTotal.Location = new Point(0, 92);
|
panelTotal.Location = new Point(0, 66);
|
||||||
panelTotal.Margin = new Padding(4);
|
panelTotal.Margin = new Padding(4);
|
||||||
panelTotal.Name = "panelTotal";
|
panelTotal.Name = "panelTotal";
|
||||||
panelTotal.Size = new Size(523, 140);
|
panelTotal.Size = new Size(523, 140);
|
||||||
@@ -465,7 +465,7 @@ namespace GHelper
|
|||||||
panelTitleCPU.Dock = DockStyle.Top;
|
panelTitleCPU.Dock = DockStyle.Top;
|
||||||
panelTitleCPU.Location = new Point(0, 0);
|
panelTitleCPU.Location = new Point(0, 0);
|
||||||
panelTitleCPU.Name = "panelTitleCPU";
|
panelTitleCPU.Name = "panelTitleCPU";
|
||||||
panelTitleCPU.Size = new Size(523, 92);
|
panelTitleCPU.Size = new Size(523, 66);
|
||||||
panelTitleCPU.TabIndex = 42;
|
panelTitleCPU.TabIndex = 42;
|
||||||
//
|
//
|
||||||
// pictureBox1
|
// pictureBox1
|
||||||
@@ -473,7 +473,7 @@ namespace GHelper
|
|||||||
pictureBox1.BackgroundImage = Properties.Resources.icons8_processor_96;
|
pictureBox1.BackgroundImage = Properties.Resources.icons8_processor_96;
|
||||||
pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
|
pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
|
||||||
pictureBox1.InitialImage = null;
|
pictureBox1.InitialImage = null;
|
||||||
pictureBox1.Location = new Point(10, 44);
|
pictureBox1.Location = new Point(18, 18);
|
||||||
pictureBox1.Margin = new Padding(4, 2, 4, 10);
|
pictureBox1.Margin = new Padding(4, 2, 4, 10);
|
||||||
pictureBox1.Name = "pictureBox1";
|
pictureBox1.Name = "pictureBox1";
|
||||||
pictureBox1.Size = new Size(36, 38);
|
pictureBox1.Size = new Size(36, 38);
|
||||||
@@ -484,7 +484,7 @@ namespace GHelper
|
|||||||
//
|
//
|
||||||
labelPowerLimits.AutoSize = true;
|
labelPowerLimits.AutoSize = true;
|
||||||
labelPowerLimits.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
labelPowerLimits.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||||
labelPowerLimits.Location = new Point(54, 48);
|
labelPowerLimits.Location = new Point(62, 20);
|
||||||
labelPowerLimits.Margin = new Padding(4, 0, 4, 0);
|
labelPowerLimits.Margin = new Padding(4, 0, 4, 0);
|
||||||
labelPowerLimits.Name = "labelPowerLimits";
|
labelPowerLimits.Name = "labelPowerLimits";
|
||||||
labelPowerLimits.Size = new Size(229, 32);
|
labelPowerLimits.Size = new Size(229, 32);
|
||||||
@@ -502,9 +502,104 @@ namespace GHelper
|
|||||||
panelGPU.Dock = DockStyle.Top;
|
panelGPU.Dock = DockStyle.Top;
|
||||||
panelGPU.Location = new Point(10, 0);
|
panelGPU.Location = new Point(10, 0);
|
||||||
panelGPU.Name = "panelGPU";
|
panelGPU.Name = "panelGPU";
|
||||||
panelGPU.Size = new Size(523, 634);
|
panelGPU.Padding = new Padding(0, 0, 0, 18);
|
||||||
|
panelGPU.Size = new Size(523, 652);
|
||||||
panelGPU.TabIndex = 44;
|
panelGPU.TabIndex = 44;
|
||||||
//
|
//
|
||||||
|
// panelGPUTemp
|
||||||
|
//
|
||||||
|
panelGPUTemp.AutoSize = true;
|
||||||
|
panelGPUTemp.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
|
panelGPUTemp.Controls.Add(labelGPUTemp);
|
||||||
|
panelGPUTemp.Controls.Add(labelGPUTempTitle);
|
||||||
|
panelGPUTemp.Controls.Add(trackGPUTemp);
|
||||||
|
panelGPUTemp.Dock = DockStyle.Top;
|
||||||
|
panelGPUTemp.Location = new Point(0, 485);
|
||||||
|
panelGPUTemp.Name = "panelGPUTemp";
|
||||||
|
panelGPUTemp.Size = new Size(523, 149);
|
||||||
|
panelGPUTemp.TabIndex = 47;
|
||||||
|
//
|
||||||
|
// labelGPUTemp
|
||||||
|
//
|
||||||
|
labelGPUTemp.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||||
|
labelGPUTemp.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||||
|
labelGPUTemp.Location = new Point(378, 14);
|
||||||
|
labelGPUTemp.Name = "labelGPUTemp";
|
||||||
|
labelGPUTemp.Size = new Size(130, 32);
|
||||||
|
labelGPUTemp.TabIndex = 44;
|
||||||
|
labelGPUTemp.Text = "87C";
|
||||||
|
labelGPUTemp.TextAlign = ContentAlignment.TopRight;
|
||||||
|
//
|
||||||
|
// labelGPUTempTitle
|
||||||
|
//
|
||||||
|
labelGPUTempTitle.AutoSize = true;
|
||||||
|
labelGPUTempTitle.Location = new Point(10, 14);
|
||||||
|
labelGPUTempTitle.Name = "labelGPUTempTitle";
|
||||||
|
labelGPUTempTitle.Size = new Size(173, 32);
|
||||||
|
labelGPUTempTitle.TabIndex = 43;
|
||||||
|
labelGPUTempTitle.Text = "Thermal Target";
|
||||||
|
//
|
||||||
|
// trackGPUTemp
|
||||||
|
//
|
||||||
|
trackGPUTemp.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
trackGPUTemp.Location = new Point(6, 57);
|
||||||
|
trackGPUTemp.Margin = new Padding(4, 2, 4, 2);
|
||||||
|
trackGPUTemp.Maximum = 87;
|
||||||
|
trackGPUTemp.Minimum = 75;
|
||||||
|
trackGPUTemp.Name = "trackGPUTemp";
|
||||||
|
trackGPUTemp.Size = new Size(502, 90);
|
||||||
|
trackGPUTemp.TabIndex = 42;
|
||||||
|
trackGPUTemp.TickFrequency = 5;
|
||||||
|
trackGPUTemp.TickStyle = TickStyle.TopLeft;
|
||||||
|
trackGPUTemp.Value = 87;
|
||||||
|
//
|
||||||
|
// panelGPUBoost
|
||||||
|
//
|
||||||
|
panelGPUBoost.AutoSize = true;
|
||||||
|
panelGPUBoost.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
|
panelGPUBoost.Controls.Add(labelGPUBoost);
|
||||||
|
panelGPUBoost.Controls.Add(labelGPUBoostTitle);
|
||||||
|
panelGPUBoost.Controls.Add(trackGPUBoost);
|
||||||
|
panelGPUBoost.Dock = DockStyle.Top;
|
||||||
|
panelGPUBoost.Location = new Point(0, 345);
|
||||||
|
panelGPUBoost.Name = "panelGPUBoost";
|
||||||
|
panelGPUBoost.Size = new Size(523, 140);
|
||||||
|
panelGPUBoost.TabIndex = 46;
|
||||||
|
//
|
||||||
|
// labelGPUBoost
|
||||||
|
//
|
||||||
|
labelGPUBoost.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||||
|
labelGPUBoost.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||||
|
labelGPUBoost.Location = new Point(374, 14);
|
||||||
|
labelGPUBoost.Name = "labelGPUBoost";
|
||||||
|
labelGPUBoost.Size = new Size(130, 32);
|
||||||
|
labelGPUBoost.TabIndex = 44;
|
||||||
|
labelGPUBoost.Text = "25W";
|
||||||
|
labelGPUBoost.TextAlign = ContentAlignment.TopRight;
|
||||||
|
//
|
||||||
|
// labelGPUBoostTitle
|
||||||
|
//
|
||||||
|
labelGPUBoostTitle.AutoSize = true;
|
||||||
|
labelGPUBoostTitle.Location = new Point(10, 14);
|
||||||
|
labelGPUBoostTitle.Name = "labelGPUBoostTitle";
|
||||||
|
labelGPUBoostTitle.Size = new Size(174, 32);
|
||||||
|
labelGPUBoostTitle.TabIndex = 43;
|
||||||
|
labelGPUBoostTitle.Text = "Dynamic Boost";
|
||||||
|
//
|
||||||
|
// trackGPUBoost
|
||||||
|
//
|
||||||
|
trackGPUBoost.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
trackGPUBoost.Location = new Point(6, 48);
|
||||||
|
trackGPUBoost.Margin = new Padding(4, 2, 4, 2);
|
||||||
|
trackGPUBoost.Maximum = 25;
|
||||||
|
trackGPUBoost.Minimum = 5;
|
||||||
|
trackGPUBoost.Name = "trackGPUBoost";
|
||||||
|
trackGPUBoost.Size = new Size(502, 90);
|
||||||
|
trackGPUBoost.TabIndex = 42;
|
||||||
|
trackGPUBoost.TickFrequency = 5;
|
||||||
|
trackGPUBoost.TickStyle = TickStyle.TopLeft;
|
||||||
|
trackGPUBoost.Value = 25;
|
||||||
|
//
|
||||||
// panelGPUMemory
|
// panelGPUMemory
|
||||||
//
|
//
|
||||||
panelGPUMemory.AutoSize = true;
|
panelGPUMemory.AutoSize = true;
|
||||||
@@ -534,7 +629,7 @@ namespace GHelper
|
|||||||
labelGPUMemoryTitle.AutoSize = true;
|
labelGPUMemoryTitle.AutoSize = true;
|
||||||
labelGPUMemoryTitle.Location = new Point(10, 14);
|
labelGPUMemoryTitle.Location = new Point(10, 14);
|
||||||
labelGPUMemoryTitle.Name = "labelGPUMemoryTitle";
|
labelGPUMemoryTitle.Name = "labelGPUMemoryTitle";
|
||||||
labelGPUMemoryTitle.Size = new Size(169, 32);
|
labelGPUMemoryTitle.Size = new Size(241, 32);
|
||||||
labelGPUMemoryTitle.TabIndex = 43;
|
labelGPUMemoryTitle.TabIndex = 43;
|
||||||
labelGPUMemoryTitle.Text = "Memory Clock Offset";
|
labelGPUMemoryTitle.Text = "Memory Clock Offset";
|
||||||
//
|
//
|
||||||
@@ -636,100 +731,6 @@ namespace GHelper
|
|||||||
labelGPU.TabIndex = 40;
|
labelGPU.TabIndex = 40;
|
||||||
labelGPU.Text = "GPU Settings";
|
labelGPU.Text = "GPU Settings";
|
||||||
//
|
//
|
||||||
// panelGPUBoost
|
|
||||||
//
|
|
||||||
panelGPUBoost.AutoSize = true;
|
|
||||||
panelGPUBoost.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
|
||||||
panelGPUBoost.Controls.Add(labelGPUBoost);
|
|
||||||
panelGPUBoost.Controls.Add(labelGPUBoostTitle);
|
|
||||||
panelGPUBoost.Controls.Add(trackGPUBoost);
|
|
||||||
panelGPUBoost.Dock = DockStyle.Top;
|
|
||||||
panelGPUBoost.Location = new Point(0, 345);
|
|
||||||
panelGPUBoost.Name = "panelGPUBoost";
|
|
||||||
panelGPUBoost.Size = new Size(523, 140);
|
|
||||||
panelGPUBoost.TabIndex = 46;
|
|
||||||
//
|
|
||||||
// labelGPUBoost
|
|
||||||
//
|
|
||||||
labelGPUBoost.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
||||||
labelGPUBoost.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
||||||
labelGPUBoost.Location = new Point(374, 14);
|
|
||||||
labelGPUBoost.Name = "labelGPUBoost";
|
|
||||||
labelGPUBoost.Size = new Size(130, 32);
|
|
||||||
labelGPUBoost.TabIndex = 44;
|
|
||||||
labelGPUBoost.Text = "25W";
|
|
||||||
labelGPUBoost.TextAlign = ContentAlignment.TopRight;
|
|
||||||
//
|
|
||||||
// labelGPUBoostTitle
|
|
||||||
//
|
|
||||||
labelGPUBoostTitle.AutoSize = true;
|
|
||||||
labelGPUBoostTitle.Location = new Point(10, 14);
|
|
||||||
labelGPUBoostTitle.Name = "labelGPUBoostTitle";
|
|
||||||
labelGPUBoostTitle.Size = new Size(174, 32);
|
|
||||||
labelGPUBoostTitle.TabIndex = 43;
|
|
||||||
labelGPUBoostTitle.Text = "Dynamic Boost";
|
|
||||||
//
|
|
||||||
// trackGPUBoost
|
|
||||||
//
|
|
||||||
trackGPUBoost.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
trackGPUBoost.Location = new Point(6, 48);
|
|
||||||
trackGPUBoost.Margin = new Padding(4, 2, 4, 2);
|
|
||||||
trackGPUBoost.Maximum = 25;
|
|
||||||
trackGPUBoost.Minimum = 5;
|
|
||||||
trackGPUBoost.Name = "trackGPUBoost";
|
|
||||||
trackGPUBoost.Size = new Size(502, 90);
|
|
||||||
trackGPUBoost.TabIndex = 42;
|
|
||||||
trackGPUBoost.TickFrequency = 5;
|
|
||||||
trackGPUBoost.TickStyle = TickStyle.TopLeft;
|
|
||||||
trackGPUBoost.Value = 25;
|
|
||||||
//
|
|
||||||
// panelGPUTemp
|
|
||||||
//
|
|
||||||
panelGPUTemp.AutoSize = true;
|
|
||||||
panelGPUTemp.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
|
||||||
panelGPUTemp.Controls.Add(labelGPUTemp);
|
|
||||||
panelGPUTemp.Controls.Add(labelGPUTempTitle);
|
|
||||||
panelGPUTemp.Controls.Add(trackGPUTemp);
|
|
||||||
panelGPUTemp.Dock = DockStyle.Top;
|
|
||||||
panelGPUTemp.Location = new Point(0, 485);
|
|
||||||
panelGPUTemp.Name = "panelGPUTemp";
|
|
||||||
panelGPUTemp.Size = new Size(523, 149);
|
|
||||||
panelGPUTemp.TabIndex = 47;
|
|
||||||
//
|
|
||||||
// labelGPUTemp
|
|
||||||
//
|
|
||||||
labelGPUTemp.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
||||||
labelGPUTemp.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
||||||
labelGPUTemp.Location = new Point(378, 14);
|
|
||||||
labelGPUTemp.Name = "labelGPUTemp";
|
|
||||||
labelGPUTemp.Size = new Size(130, 32);
|
|
||||||
labelGPUTemp.TabIndex = 44;
|
|
||||||
labelGPUTemp.Text = "87C";
|
|
||||||
labelGPUTemp.TextAlign = ContentAlignment.TopRight;
|
|
||||||
//
|
|
||||||
// labelGPUTempTitle
|
|
||||||
//
|
|
||||||
labelGPUTempTitle.AutoSize = true;
|
|
||||||
labelGPUTempTitle.Location = new Point(10, 14);
|
|
||||||
labelGPUTempTitle.Name = "labelGPUTempTitle";
|
|
||||||
labelGPUTempTitle.Size = new Size(173, 32);
|
|
||||||
labelGPUTempTitle.TabIndex = 43;
|
|
||||||
labelGPUTempTitle.Text = "Thermal Target";
|
|
||||||
//
|
|
||||||
// trackGPUTemp
|
|
||||||
//
|
|
||||||
trackGPUTemp.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
trackGPUTemp.Location = new Point(6, 57);
|
|
||||||
trackGPUTemp.Margin = new Padding(4, 2, 4, 2);
|
|
||||||
trackGPUTemp.Maximum = 87;
|
|
||||||
trackGPUTemp.Minimum = 75;
|
|
||||||
trackGPUTemp.Name = "trackGPUTemp";
|
|
||||||
trackGPUTemp.Size = new Size(502, 90);
|
|
||||||
trackGPUTemp.TabIndex = 42;
|
|
||||||
trackGPUTemp.TickFrequency = 5;
|
|
||||||
trackGPUTemp.TickStyle = TickStyle.TopLeft;
|
|
||||||
trackGPUTemp.Value = 87;
|
|
||||||
//
|
|
||||||
// Fans
|
// Fans
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(192F, 192F);
|
AutoScaleDimensions = new SizeF(192F, 192F);
|
||||||
@@ -773,6 +774,12 @@ namespace GHelper
|
|||||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||||||
panelGPU.ResumeLayout(false);
|
panelGPU.ResumeLayout(false);
|
||||||
panelGPU.PerformLayout();
|
panelGPU.PerformLayout();
|
||||||
|
panelGPUTemp.ResumeLayout(false);
|
||||||
|
panelGPUTemp.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackGPUTemp).EndInit();
|
||||||
|
panelGPUBoost.ResumeLayout(false);
|
||||||
|
panelGPUBoost.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackGPUBoost).EndInit();
|
||||||
panelGPUMemory.ResumeLayout(false);
|
panelGPUMemory.ResumeLayout(false);
|
||||||
panelGPUMemory.PerformLayout();
|
panelGPUMemory.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUMemory).EndInit();
|
((System.ComponentModel.ISupportInitialize)trackGPUMemory).EndInit();
|
||||||
@@ -782,12 +789,6 @@ namespace GHelper
|
|||||||
panelTitleGPU.ResumeLayout(false);
|
panelTitleGPU.ResumeLayout(false);
|
||||||
panelTitleGPU.PerformLayout();
|
panelTitleGPU.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureGPU).EndInit();
|
((System.ComponentModel.ISupportInitialize)pictureGPU).EndInit();
|
||||||
panelGPUBoost.ResumeLayout(false);
|
|
||||||
panelGPUBoost.PerformLayout();
|
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUBoost).EndInit();
|
|
||||||
panelGPUTemp.ResumeLayout(false);
|
|
||||||
panelGPUTemp.PerformLayout();
|
|
||||||
((System.ComponentModel.ISupportInitialize)trackGPUTemp).EndInit();
|
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user