mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added APU slider
This commit is contained in:
186
app/Fans.Designer.cs
generated
186
app/Fans.Designer.cs
generated
@@ -31,14 +31,14 @@ namespace GHelper
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
ChartArea chartArea1 = new ChartArea();
|
ChartArea chartArea5 = new ChartArea();
|
||||||
Title title1 = new Title();
|
Title title5 = new Title();
|
||||||
ChartArea chartArea2 = new ChartArea();
|
ChartArea chartArea6 = new ChartArea();
|
||||||
Title title2 = new Title();
|
Title title6 = new Title();
|
||||||
ChartArea chartArea3 = new ChartArea();
|
ChartArea chartArea7 = new ChartArea();
|
||||||
Title title3 = new Title();
|
Title title7 = new Title();
|
||||||
ChartArea chartArea4 = new ChartArea();
|
ChartArea chartArea8 = new ChartArea();
|
||||||
Title title4 = new Title();
|
Title title8 = new Title();
|
||||||
panelFans = new Panel();
|
panelFans = new Panel();
|
||||||
labelTip = new Label();
|
labelTip = new Label();
|
||||||
tableFanCharts = new TableLayoutPanel();
|
tableFanCharts = new TableLayoutPanel();
|
||||||
@@ -60,13 +60,17 @@ namespace GHelper
|
|||||||
panelApplyPower = new Panel();
|
panelApplyPower = new Panel();
|
||||||
checkApplyPower = new RCheckBox();
|
checkApplyPower = new RCheckBox();
|
||||||
labelInfo = new Label();
|
labelInfo = new Label();
|
||||||
|
panelAPU = new Panel();
|
||||||
|
labelAPU = new Label();
|
||||||
|
labelLeftAPU = new Label();
|
||||||
|
trackAPU = new TrackBar();
|
||||||
panelCPU = new Panel();
|
panelCPU = new Panel();
|
||||||
labelCPU = new Label();
|
labelCPU = new Label();
|
||||||
label2 = new Label();
|
labelLeftCPU = new Label();
|
||||||
trackCPU = new TrackBar();
|
trackCPU = new TrackBar();
|
||||||
panelTotal = new Panel();
|
panelTotal = new Panel();
|
||||||
labelTotal = new Label();
|
labelTotal = new Label();
|
||||||
labelPlatform = new Label();
|
labelLeftPlatform = new Label();
|
||||||
trackTotal = new TrackBar();
|
trackTotal = new TrackBar();
|
||||||
panelTitleCPU = new Panel();
|
panelTitleCPU = new Panel();
|
||||||
pictureBox1 = new PictureBox();
|
pictureBox1 = new PictureBox();
|
||||||
@@ -103,6 +107,8 @@ namespace GHelper
|
|||||||
panelSliders.SuspendLayout();
|
panelSliders.SuspendLayout();
|
||||||
panelPower.SuspendLayout();
|
panelPower.SuspendLayout();
|
||||||
panelApplyPower.SuspendLayout();
|
panelApplyPower.SuspendLayout();
|
||||||
|
panelAPU.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackAPU).BeginInit();
|
||||||
panelCPU.SuspendLayout();
|
panelCPU.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)trackCPU).BeginInit();
|
((System.ComponentModel.ISupportInitialize)trackCPU).BeginInit();
|
||||||
panelTotal.SuspendLayout();
|
panelTotal.SuspendLayout();
|
||||||
@@ -137,7 +143,7 @@ namespace GHelper
|
|||||||
panelFans.MinimumSize = new Size(815, 0);
|
panelFans.MinimumSize = new Size(815, 0);
|
||||||
panelFans.Name = "panelFans";
|
panelFans.Name = "panelFans";
|
||||||
panelFans.Padding = new Padding(0, 0, 10, 0);
|
panelFans.Padding = new Padding(0, 0, 10, 0);
|
||||||
panelFans.Size = new Size(815, 1189);
|
panelFans.Size = new Size(815, 1310);
|
||||||
panelFans.TabIndex = 12;
|
panelFans.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// labelTip
|
// labelTip
|
||||||
@@ -170,65 +176,65 @@ namespace GHelper
|
|||||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
||||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
||||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
||||||
tableFanCharts.Size = new Size(805, 1007);
|
tableFanCharts.Size = new Size(805, 1128);
|
||||||
tableFanCharts.TabIndex = 36;
|
tableFanCharts.TabIndex = 36;
|
||||||
//
|
//
|
||||||
// chartGPU
|
// chartGPU
|
||||||
//
|
//
|
||||||
chartArea1.Name = "ChartArea1";
|
chartArea5.Name = "ChartArea1";
|
||||||
chartGPU.ChartAreas.Add(chartArea1);
|
chartGPU.ChartAreas.Add(chartArea5);
|
||||||
chartGPU.Dock = DockStyle.Fill;
|
chartGPU.Dock = DockStyle.Fill;
|
||||||
chartGPU.Location = new Point(12, 259);
|
chartGPU.Location = new Point(12, 289);
|
||||||
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
||||||
chartGPU.Name = "chartGPU";
|
chartGPU.Name = "chartGPU";
|
||||||
chartGPU.Size = new Size(781, 229);
|
chartGPU.Size = new Size(781, 259);
|
||||||
chartGPU.TabIndex = 17;
|
chartGPU.TabIndex = 17;
|
||||||
chartGPU.Text = "chartGPU";
|
chartGPU.Text = "chartGPU";
|
||||||
title1.Name = "Title1";
|
title5.Name = "Title1";
|
||||||
chartGPU.Titles.Add(title1);
|
chartGPU.Titles.Add(title5);
|
||||||
//
|
//
|
||||||
// chartCPU
|
// chartCPU
|
||||||
//
|
//
|
||||||
chartArea2.Name = "ChartArea1";
|
chartArea6.Name = "ChartArea1";
|
||||||
chartCPU.ChartAreas.Add(chartArea2);
|
chartCPU.ChartAreas.Add(chartArea6);
|
||||||
chartCPU.Dock = DockStyle.Fill;
|
chartCPU.Dock = DockStyle.Fill;
|
||||||
chartCPU.Location = new Point(12, 10);
|
chartCPU.Location = new Point(12, 10);
|
||||||
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
||||||
chartCPU.Name = "chartCPU";
|
chartCPU.Name = "chartCPU";
|
||||||
chartCPU.Size = new Size(781, 229);
|
chartCPU.Size = new Size(781, 259);
|
||||||
chartCPU.TabIndex = 14;
|
chartCPU.TabIndex = 14;
|
||||||
chartCPU.Text = "chartCPU";
|
chartCPU.Text = "chartCPU";
|
||||||
title2.Name = "Title1";
|
title6.Name = "Title1";
|
||||||
chartCPU.Titles.Add(title2);
|
chartCPU.Titles.Add(title6);
|
||||||
//
|
//
|
||||||
// chartXGM
|
// chartXGM
|
||||||
//
|
//
|
||||||
chartArea3.Name = "ChartAreaXGM";
|
chartArea7.Name = "ChartAreaXGM";
|
||||||
chartXGM.ChartAreas.Add(chartArea3);
|
chartXGM.ChartAreas.Add(chartArea7);
|
||||||
chartXGM.Dock = DockStyle.Fill;
|
chartXGM.Dock = DockStyle.Fill;
|
||||||
chartXGM.Location = new Point(12, 757);
|
chartXGM.Location = new Point(12, 847);
|
||||||
chartXGM.Margin = new Padding(2, 10, 2, 10);
|
chartXGM.Margin = new Padding(2, 10, 2, 10);
|
||||||
chartXGM.Name = "chartXGM";
|
chartXGM.Name = "chartXGM";
|
||||||
chartXGM.Size = new Size(781, 230);
|
chartXGM.Size = new Size(781, 261);
|
||||||
chartXGM.TabIndex = 14;
|
chartXGM.TabIndex = 14;
|
||||||
chartXGM.Text = "chartXGM";
|
chartXGM.Text = "chartXGM";
|
||||||
title3.Name = "Title4";
|
title7.Name = "Title4";
|
||||||
chartXGM.Titles.Add(title3);
|
chartXGM.Titles.Add(title7);
|
||||||
chartXGM.Visible = false;
|
chartXGM.Visible = false;
|
||||||
//
|
//
|
||||||
// chartMid
|
// chartMid
|
||||||
//
|
//
|
||||||
chartArea4.Name = "ChartArea3";
|
chartArea8.Name = "ChartArea3";
|
||||||
chartMid.ChartAreas.Add(chartArea4);
|
chartMid.ChartAreas.Add(chartArea8);
|
||||||
chartMid.Dock = DockStyle.Fill;
|
chartMid.Dock = DockStyle.Fill;
|
||||||
chartMid.Location = new Point(12, 508);
|
chartMid.Location = new Point(12, 568);
|
||||||
chartMid.Margin = new Padding(2, 10, 2, 10);
|
chartMid.Margin = new Padding(2, 10, 2, 10);
|
||||||
chartMid.Name = "chartMid";
|
chartMid.Name = "chartMid";
|
||||||
chartMid.Size = new Size(781, 229);
|
chartMid.Size = new Size(781, 259);
|
||||||
chartMid.TabIndex = 14;
|
chartMid.TabIndex = 14;
|
||||||
chartMid.Text = "chartMid";
|
chartMid.Text = "chartMid";
|
||||||
title4.Name = "Title3";
|
title8.Name = "Title3";
|
||||||
chartMid.Titles.Add(title4);
|
chartMid.Titles.Add(title8);
|
||||||
chartMid.Visible = false;
|
chartMid.Visible = false;
|
||||||
//
|
//
|
||||||
// panelTitleFans
|
// panelTitleFans
|
||||||
@@ -295,7 +301,7 @@ namespace GHelper
|
|||||||
panelApplyFans.Controls.Add(checkApplyFans);
|
panelApplyFans.Controls.Add(checkApplyFans);
|
||||||
panelApplyFans.Controls.Add(buttonReset);
|
panelApplyFans.Controls.Add(buttonReset);
|
||||||
panelApplyFans.Dock = DockStyle.Bottom;
|
panelApplyFans.Dock = DockStyle.Bottom;
|
||||||
panelApplyFans.Location = new Point(0, 1073);
|
panelApplyFans.Location = new Point(0, 1194);
|
||||||
panelApplyFans.Name = "panelApplyFans";
|
panelApplyFans.Name = "panelApplyFans";
|
||||||
panelApplyFans.Size = new Size(805, 116);
|
panelApplyFans.Size = new Size(805, 116);
|
||||||
panelApplyFans.TabIndex = 43;
|
panelApplyFans.TabIndex = 43;
|
||||||
@@ -351,7 +357,7 @@ namespace GHelper
|
|||||||
panelSliders.Margin = new Padding(0);
|
panelSliders.Margin = new Padding(0);
|
||||||
panelSliders.Name = "panelSliders";
|
panelSliders.Name = "panelSliders";
|
||||||
panelSliders.Padding = new Padding(10, 0, 0, 0);
|
panelSliders.Padding = new Padding(10, 0, 0, 0);
|
||||||
panelSliders.Size = new Size(533, 1189);
|
panelSliders.Size = new Size(533, 1310);
|
||||||
panelSliders.TabIndex = 13;
|
panelSliders.TabIndex = 13;
|
||||||
//
|
//
|
||||||
// panelPower
|
// panelPower
|
||||||
@@ -360,20 +366,21 @@ namespace GHelper
|
|||||||
panelPower.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
panelPower.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
panelPower.Controls.Add(panelApplyPower);
|
panelPower.Controls.Add(panelApplyPower);
|
||||||
panelPower.Controls.Add(labelInfo);
|
panelPower.Controls.Add(labelInfo);
|
||||||
|
panelPower.Controls.Add(panelAPU);
|
||||||
panelPower.Controls.Add(panelCPU);
|
panelPower.Controls.Add(panelCPU);
|
||||||
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, 652);
|
panelPower.Location = new Point(10, 652);
|
||||||
panelPower.Name = "panelPower";
|
panelPower.Name = "panelPower";
|
||||||
panelPower.Size = new Size(523, 537);
|
panelPower.Size = new Size(523, 658);
|
||||||
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, 447);
|
panelApplyPower.Location = new Point(0, 568);
|
||||||
panelApplyPower.Name = "panelApplyPower";
|
panelApplyPower.Name = "panelApplyPower";
|
||||||
panelApplyPower.Padding = new Padding(10);
|
panelApplyPower.Padding = new Padding(10);
|
||||||
panelApplyPower.Size = new Size(523, 90);
|
panelApplyPower.Size = new Size(523, 90);
|
||||||
@@ -396,7 +403,7 @@ namespace GHelper
|
|||||||
// labelInfo
|
// labelInfo
|
||||||
//
|
//
|
||||||
labelInfo.Dock = DockStyle.Top;
|
labelInfo.Dock = DockStyle.Top;
|
||||||
labelInfo.Location = new Point(0, 342);
|
labelInfo.Location = new Point(0, 482);
|
||||||
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);
|
||||||
@@ -404,12 +411,62 @@ namespace GHelper
|
|||||||
labelInfo.TabIndex = 43;
|
labelInfo.TabIndex = 43;
|
||||||
labelInfo.Text = "Experimental Feature";
|
labelInfo.Text = "Experimental Feature";
|
||||||
//
|
//
|
||||||
|
// panelAPU
|
||||||
|
//
|
||||||
|
panelAPU.AutoSize = true;
|
||||||
|
panelAPU.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
|
panelAPU.Controls.Add(labelAPU);
|
||||||
|
panelAPU.Controls.Add(labelLeftAPU);
|
||||||
|
panelAPU.Controls.Add(trackAPU);
|
||||||
|
panelAPU.Dock = DockStyle.Top;
|
||||||
|
panelAPU.Location = new Point(0, 342);
|
||||||
|
panelAPU.Margin = new Padding(4);
|
||||||
|
panelAPU.Name = "panelAPU";
|
||||||
|
panelAPU.Size = new Size(523, 140);
|
||||||
|
panelAPU.TabIndex = 45;
|
||||||
|
//
|
||||||
|
// labelAPU
|
||||||
|
//
|
||||||
|
labelAPU.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||||
|
labelAPU.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||||
|
labelAPU.Location = new Point(396, 8);
|
||||||
|
labelAPU.Margin = new Padding(4, 0, 4, 0);
|
||||||
|
labelAPU.Name = "labelAPU";
|
||||||
|
labelAPU.Size = new Size(119, 32);
|
||||||
|
labelAPU.TabIndex = 13;
|
||||||
|
labelAPU.Text = "APU";
|
||||||
|
labelAPU.TextAlign = ContentAlignment.TopRight;
|
||||||
|
//
|
||||||
|
// labelLeftAPU
|
||||||
|
//
|
||||||
|
labelLeftAPU.AutoSize = true;
|
||||||
|
labelLeftAPU.Location = new Point(10, 8);
|
||||||
|
labelLeftAPU.Margin = new Padding(4, 0, 4, 0);
|
||||||
|
labelLeftAPU.Name = "labelLeftAPU";
|
||||||
|
labelLeftAPU.Size = new Size(58, 32);
|
||||||
|
labelLeftAPU.TabIndex = 12;
|
||||||
|
labelLeftAPU.Text = "APU";
|
||||||
|
//
|
||||||
|
// trackAPU
|
||||||
|
//
|
||||||
|
trackAPU.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
trackAPU.Location = new Point(6, 48);
|
||||||
|
trackAPU.Margin = new Padding(4, 2, 4, 2);
|
||||||
|
trackAPU.Maximum = 85;
|
||||||
|
trackAPU.Minimum = 5;
|
||||||
|
trackAPU.Name = "trackAPU";
|
||||||
|
trackAPU.Size = new Size(513, 90);
|
||||||
|
trackAPU.TabIndex = 11;
|
||||||
|
trackAPU.TickFrequency = 5;
|
||||||
|
trackAPU.TickStyle = TickStyle.TopLeft;
|
||||||
|
trackAPU.Value = 80;
|
||||||
|
//
|
||||||
// panelCPU
|
// panelCPU
|
||||||
//
|
//
|
||||||
panelCPU.AutoSize = true;
|
panelCPU.AutoSize = true;
|
||||||
panelCPU.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
panelCPU.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
panelCPU.Controls.Add(labelCPU);
|
panelCPU.Controls.Add(labelCPU);
|
||||||
panelCPU.Controls.Add(label2);
|
panelCPU.Controls.Add(labelLeftCPU);
|
||||||
panelCPU.Controls.Add(trackCPU);
|
panelCPU.Controls.Add(trackCPU);
|
||||||
panelCPU.Dock = DockStyle.Top;
|
panelCPU.Dock = DockStyle.Top;
|
||||||
panelCPU.Location = new Point(0, 206);
|
panelCPU.Location = new Point(0, 206);
|
||||||
@@ -430,15 +487,15 @@ namespace GHelper
|
|||||||
labelCPU.Text = "CPU";
|
labelCPU.Text = "CPU";
|
||||||
labelCPU.TextAlign = ContentAlignment.TopRight;
|
labelCPU.TextAlign = ContentAlignment.TopRight;
|
||||||
//
|
//
|
||||||
// label2
|
// labelLeftCPU
|
||||||
//
|
//
|
||||||
label2.AutoSize = true;
|
labelLeftCPU.AutoSize = true;
|
||||||
label2.Location = new Point(10, 8);
|
labelLeftCPU.Location = new Point(10, 8);
|
||||||
label2.Margin = new Padding(4, 0, 4, 0);
|
labelLeftCPU.Margin = new Padding(4, 0, 4, 0);
|
||||||
label2.Name = "label2";
|
labelLeftCPU.Name = "labelLeftCPU";
|
||||||
label2.Size = new Size(58, 32);
|
labelLeftCPU.Size = new Size(58, 32);
|
||||||
label2.TabIndex = 12;
|
labelLeftCPU.TabIndex = 12;
|
||||||
label2.Text = "CPU";
|
labelLeftCPU.Text = "CPU";
|
||||||
//
|
//
|
||||||
// trackCPU
|
// trackCPU
|
||||||
//
|
//
|
||||||
@@ -459,7 +516,7 @@ namespace GHelper
|
|||||||
panelTotal.AutoSize = true;
|
panelTotal.AutoSize = true;
|
||||||
panelTotal.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
panelTotal.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
panelTotal.Controls.Add(labelTotal);
|
panelTotal.Controls.Add(labelTotal);
|
||||||
panelTotal.Controls.Add(labelPlatform);
|
panelTotal.Controls.Add(labelLeftPlatform);
|
||||||
panelTotal.Controls.Add(trackTotal);
|
panelTotal.Controls.Add(trackTotal);
|
||||||
panelTotal.Dock = DockStyle.Top;
|
panelTotal.Dock = DockStyle.Top;
|
||||||
panelTotal.Location = new Point(0, 66);
|
panelTotal.Location = new Point(0, 66);
|
||||||
@@ -480,15 +537,15 @@ namespace GHelper
|
|||||||
labelTotal.Text = "Platform";
|
labelTotal.Text = "Platform";
|
||||||
labelTotal.TextAlign = ContentAlignment.TopRight;
|
labelTotal.TextAlign = ContentAlignment.TopRight;
|
||||||
//
|
//
|
||||||
// labelPlatform
|
// labelLeftPlatform
|
||||||
//
|
//
|
||||||
labelPlatform.AutoSize = true;
|
labelLeftPlatform.AutoSize = true;
|
||||||
labelPlatform.Location = new Point(10, 10);
|
labelLeftPlatform.Location = new Point(10, 10);
|
||||||
labelPlatform.Margin = new Padding(4, 0, 4, 0);
|
labelLeftPlatform.Margin = new Padding(4, 0, 4, 0);
|
||||||
labelPlatform.Name = "labelPlatform";
|
labelLeftPlatform.Name = "labelLeftPlatform";
|
||||||
labelPlatform.Size = new Size(104, 32);
|
labelLeftPlatform.Size = new Size(104, 32);
|
||||||
labelPlatform.TabIndex = 11;
|
labelLeftPlatform.TabIndex = 11;
|
||||||
labelPlatform.Text = "Platform";
|
labelLeftPlatform.Text = "Platform";
|
||||||
//
|
//
|
||||||
// trackTotal
|
// trackTotal
|
||||||
//
|
//
|
||||||
@@ -785,7 +842,7 @@ namespace GHelper
|
|||||||
AutoScaleMode = AutoScaleMode.Dpi;
|
AutoScaleMode = AutoScaleMode.Dpi;
|
||||||
AutoSize = true;
|
AutoSize = true;
|
||||||
AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
ClientSize = new Size(1340, 1189);
|
ClientSize = new Size(1340, 1310);
|
||||||
Controls.Add(panelFans);
|
Controls.Add(panelFans);
|
||||||
Controls.Add(panelSliders);
|
Controls.Add(panelSliders);
|
||||||
Margin = new Padding(4, 2, 4, 2);
|
Margin = new Padding(4, 2, 4, 2);
|
||||||
@@ -816,6 +873,9 @@ namespace GHelper
|
|||||||
panelPower.PerformLayout();
|
panelPower.PerformLayout();
|
||||||
panelApplyPower.ResumeLayout(false);
|
panelApplyPower.ResumeLayout(false);
|
||||||
panelApplyPower.PerformLayout();
|
panelApplyPower.PerformLayout();
|
||||||
|
panelAPU.ResumeLayout(false);
|
||||||
|
panelAPU.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)trackAPU).EndInit();
|
||||||
panelCPU.ResumeLayout(false);
|
panelCPU.ResumeLayout(false);
|
||||||
panelCPU.PerformLayout();
|
panelCPU.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)trackCPU).EndInit();
|
((System.ComponentModel.ISupportInitialize)trackCPU).EndInit();
|
||||||
@@ -859,11 +919,11 @@ namespace GHelper
|
|||||||
private Label labelInfo;
|
private Label labelInfo;
|
||||||
private Panel panelCPU;
|
private Panel panelCPU;
|
||||||
private Label labelCPU;
|
private Label labelCPU;
|
||||||
private Label label2;
|
private Label labelLeftCPU;
|
||||||
private TrackBar trackCPU;
|
private TrackBar trackCPU;
|
||||||
private Panel panelTotal;
|
private Panel panelTotal;
|
||||||
private Label labelTotal;
|
private Label labelTotal;
|
||||||
private Label labelPlatform;
|
private Label labelLeftPlatform;
|
||||||
private TrackBar trackTotal;
|
private TrackBar trackTotal;
|
||||||
private Panel panelTitleCPU;
|
private Panel panelTitleCPU;
|
||||||
private PictureBox pictureBox1;
|
private PictureBox pictureBox1;
|
||||||
@@ -899,5 +959,9 @@ namespace GHelper
|
|||||||
private RComboBox comboBoost;
|
private RComboBox comboBoost;
|
||||||
private PictureBox picturePerf;
|
private PictureBox picturePerf;
|
||||||
private Label labelFans;
|
private Label labelFans;
|
||||||
|
private Panel panelAPU;
|
||||||
|
private Label labelAPU;
|
||||||
|
private Label labelLeftAPU;
|
||||||
|
private TrackBar trackAPU;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
25
app/Fans.cs
25
app/Fans.cs
@@ -83,9 +83,14 @@ namespace GHelper
|
|||||||
trackCPU.Maximum = AsusACPI.MaxCPU;
|
trackCPU.Maximum = AsusACPI.MaxCPU;
|
||||||
trackCPU.Minimum = AsusACPI.MinCPU;
|
trackCPU.Minimum = AsusACPI.MinCPU;
|
||||||
|
|
||||||
|
trackAPU.Maximum = AsusACPI.MaxCPU;
|
||||||
|
trackAPU.Minimum = AsusACPI.MinCPU;
|
||||||
|
|
||||||
|
trackAPU.Scroll += TrackPower_Scroll;
|
||||||
trackCPU.Scroll += TrackPower_Scroll;
|
trackCPU.Scroll += TrackPower_Scroll;
|
||||||
trackTotal.Scroll += TrackPower_Scroll;
|
trackTotal.Scroll += TrackPower_Scroll;
|
||||||
|
|
||||||
|
trackAPU.MouseUp += TrackPower_MouseUp;
|
||||||
trackCPU.MouseUp += TrackPower_MouseUp;
|
trackCPU.MouseUp += TrackPower_MouseUp;
|
||||||
trackTotal.MouseUp += TrackPower_MouseUp;
|
trackTotal.MouseUp += TrackPower_MouseUp;
|
||||||
|
|
||||||
@@ -397,31 +402,37 @@ namespace GHelper
|
|||||||
public void InitPower(bool changed = false)
|
public void InitPower(bool changed = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
bool cpuBmode = (Program.acpi.DeviceGet(AsusACPI.PPT_CPUB0) >= 0); // 2022 model +
|
|
||||||
bool cpuAmode = (Program.acpi.DeviceGet(AsusACPI.PPT_TotalA0) >= 0); // 2021 model +
|
bool cpuAmode = (Program.acpi.DeviceGet(AsusACPI.PPT_TotalA0) >= 0); // 2021 model +
|
||||||
|
bool cpuBmode = (Program.acpi.DeviceGet(AsusACPI.PPT_CPUB0) >= 0); // 2022 model +
|
||||||
|
bool apuMode = (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0);
|
||||||
|
|
||||||
powerVisible = panelPower.Visible = cpuAmode;
|
powerVisible = panelPower.Visible = cpuAmode;
|
||||||
panelCPU.Visible = cpuBmode;
|
panelCPU.Visible = cpuBmode;
|
||||||
|
panelAPU.Visible = apuMode;
|
||||||
|
|
||||||
// Yes, that's stupid, but Total slider on 2021 model actually adjusts CPU PPT
|
// Yes, that's stupid, but Total slider on 2021 model actually adjusts CPU PPT
|
||||||
if (!cpuBmode)
|
if (!cpuBmode)
|
||||||
{
|
{
|
||||||
labelPlatform.Text = "CPU PPT";
|
labelLeftPlatform.Text = "CPU";
|
||||||
}
|
}
|
||||||
|
|
||||||
int limit_total;
|
int limit_total;
|
||||||
int limit_cpu;
|
int limit_cpu;
|
||||||
|
int limit_apu;
|
||||||
|
|
||||||
bool apply = AppConfig.getConfigPerf("auto_apply_power") == 1;
|
bool apply = AppConfig.getConfigPerf("auto_apply_power") == 1;
|
||||||
|
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
limit_total = trackTotal.Value;
|
limit_total = trackTotal.Value;
|
||||||
limit_cpu = trackCPU.Value;
|
limit_cpu = trackCPU.Value;
|
||||||
|
limit_apu = trackAPU.Value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
limit_total = AppConfig.getConfigPerf("limit_total");
|
limit_total = AppConfig.getConfigPerf("limit_total");
|
||||||
limit_cpu = AppConfig.getConfigPerf("limit_cpu");
|
limit_cpu = AppConfig.getConfigPerf("limit_cpu");
|
||||||
|
limit_apu = AppConfig.getConfigPerf("limit_apu");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (limit_total < 0) limit_total = AsusACPI.DefaultTotal;
|
if (limit_total < 0) limit_total = AsusACPI.DefaultTotal;
|
||||||
@@ -433,15 +444,25 @@ namespace GHelper
|
|||||||
if (limit_cpu < AsusACPI.MinCPU) limit_cpu = AsusACPI.MinCPU;
|
if (limit_cpu < AsusACPI.MinCPU) limit_cpu = AsusACPI.MinCPU;
|
||||||
if (limit_cpu > limit_total) limit_cpu = limit_total;
|
if (limit_cpu > limit_total) limit_cpu = limit_total;
|
||||||
|
|
||||||
|
if (limit_apu < 0) limit_apu = AsusACPI.DefaultCPU;
|
||||||
|
if (limit_apu > AsusACPI.MaxCPU) limit_apu = AsusACPI.MaxCPU;
|
||||||
|
if (limit_apu < AsusACPI.MinCPU) limit_apu = AsusACPI.MinCPU;
|
||||||
|
if (limit_apu > limit_total) limit_apu = limit_total;
|
||||||
|
|
||||||
|
|
||||||
trackTotal.Value = limit_total;
|
trackTotal.Value = limit_total;
|
||||||
trackCPU.Value = limit_cpu;
|
trackCPU.Value = limit_cpu;
|
||||||
|
trackAPU.Value = limit_apu;
|
||||||
|
|
||||||
checkApplyPower.Checked = apply;
|
checkApplyPower.Checked = apply;
|
||||||
|
|
||||||
labelTotal.Text = trackTotal.Value.ToString() + "W";
|
labelTotal.Text = trackTotal.Value.ToString() + "W";
|
||||||
labelCPU.Text = trackCPU.Value.ToString() + "W";
|
labelCPU.Text = trackCPU.Value.ToString() + "W";
|
||||||
|
labelAPU.Text = trackAPU.Value.ToString() + "W";
|
||||||
|
|
||||||
AppConfig.setConfigPerf("limit_total", limit_total);
|
AppConfig.setConfigPerf("limit_total", limit_total);
|
||||||
AppConfig.setConfigPerf("limit_cpu", limit_cpu);
|
AppConfig.setConfigPerf("limit_cpu", limit_cpu);
|
||||||
|
AppConfig.setConfigPerf("limit_apu", limit_apu);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -983,6 +983,7 @@ namespace GHelper
|
|||||||
|
|
||||||
int limit_total = AppConfig.getConfigPerf("limit_total");
|
int limit_total = AppConfig.getConfigPerf("limit_total");
|
||||||
int limit_cpu = AppConfig.getConfigPerf("limit_cpu");
|
int limit_cpu = AppConfig.getConfigPerf("limit_cpu");
|
||||||
|
int limit_apu = AppConfig.getConfigPerf("limit_apu");
|
||||||
|
|
||||||
if (limit_total > AsusACPI.MaxTotal) return;
|
if (limit_total > AsusACPI.MaxTotal) return;
|
||||||
if (limit_total < AsusACPI.MinTotal) return;
|
if (limit_total < AsusACPI.MinTotal) return;
|
||||||
@@ -990,6 +991,9 @@ namespace GHelper
|
|||||||
if (limit_cpu > AsusACPI.MaxCPU) return;
|
if (limit_cpu > AsusACPI.MaxCPU) return;
|
||||||
if (limit_cpu < AsusACPI.MinCPU) return;
|
if (limit_cpu < AsusACPI.MinCPU) return;
|
||||||
|
|
||||||
|
if (limit_apu > AsusACPI.MaxCPU) return;
|
||||||
|
if (limit_apu < AsusACPI.MinCPU) return;
|
||||||
|
|
||||||
if (Program.acpi.DeviceGet(AsusACPI.PPT_TotalA0) >= 0)
|
if (Program.acpi.DeviceGet(AsusACPI.PPT_TotalA0) >= 0)
|
||||||
{
|
{
|
||||||
Program.acpi.DeviceSet(AsusACPI.PPT_TotalA0, limit_total, "PowerLimit A0");
|
Program.acpi.DeviceSet(AsusACPI.PPT_TotalA0, limit_total, "PowerLimit A0");
|
||||||
@@ -1003,6 +1007,11 @@ namespace GHelper
|
|||||||
customPower = limit_cpu;
|
customPower = limit_cpu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0)
|
||||||
|
{
|
||||||
|
Program.acpi.DeviceSet(AsusACPI.PPT_APUC1, limit_apu, "PowerLimit C1");
|
||||||
|
}
|
||||||
|
|
||||||
Program.settingsForm.BeginInvoke(SetPerformanceLabel);
|
Program.settingsForm.BeginInvoke(SetPerformanceLabel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user