mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Fixed anime matrix crash
This commit is contained in:
@@ -31,9 +31,9 @@ namespace GHelper.AnimeMatrix
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
mat.Dispose();
|
|
||||||
mat = null;
|
mat = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetMatrix()
|
public void SetMatrix()
|
||||||
|
|||||||
286
app/Fans.Designer.cs
generated
286
app/Fans.Designer.cs
generated
@@ -38,18 +38,20 @@ namespace GHelper
|
|||||||
ChartArea chartArea3 = new ChartArea();
|
ChartArea chartArea3 = new ChartArea();
|
||||||
Title title3 = new Title();
|
Title title3 = new Title();
|
||||||
panelFans = new Panel();
|
panelFans = new Panel();
|
||||||
labelFansResult = new Label();
|
|
||||||
labelTip = new Label();
|
|
||||||
labelBoost = new Label();
|
|
||||||
comboBoost = new RComboBox();
|
|
||||||
picturePerf = new PictureBox();
|
|
||||||
tableFanCharts = new TableLayoutPanel();
|
tableFanCharts = new TableLayoutPanel();
|
||||||
chartGPU = new Chart();
|
chartGPU = new Chart();
|
||||||
chartCPU = new Chart();
|
chartCPU = new Chart();
|
||||||
chartMid = new Chart();
|
chartMid = new Chart();
|
||||||
|
panelTitleFans = new Panel();
|
||||||
|
labelBoost = new Label();
|
||||||
|
comboBoost = new RComboBox();
|
||||||
|
picturePerf = new PictureBox();
|
||||||
labelFans = new Label();
|
labelFans = new Label();
|
||||||
|
panelApplyFans = new Panel();
|
||||||
|
labelFansResult = new Label();
|
||||||
checkApplyFans = new RCheckBox();
|
checkApplyFans = new RCheckBox();
|
||||||
buttonReset = new RButton();
|
buttonReset = new RButton();
|
||||||
|
labelTip = new Label();
|
||||||
panelSliders = new Panel();
|
panelSliders = new Panel();
|
||||||
panelPower = new Panel();
|
panelPower = new Panel();
|
||||||
panelApplyPower = new Panel();
|
panelApplyPower = new Panel();
|
||||||
@@ -87,11 +89,13 @@ namespace GHelper
|
|||||||
pictureGPU = new PictureBox();
|
pictureGPU = new PictureBox();
|
||||||
labelGPU = new Label();
|
labelGPU = new Label();
|
||||||
panelFans.SuspendLayout();
|
panelFans.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)picturePerf).BeginInit();
|
|
||||||
tableFanCharts.SuspendLayout();
|
tableFanCharts.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)chartGPU).BeginInit();
|
((System.ComponentModel.ISupportInitialize)chartGPU).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)chartCPU).BeginInit();
|
((System.ComponentModel.ISupportInitialize)chartCPU).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)chartMid).BeginInit();
|
((System.ComponentModel.ISupportInitialize)chartMid).BeginInit();
|
||||||
|
panelTitleFans.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)picturePerf).BeginInit();
|
||||||
|
panelApplyFans.SuspendLayout();
|
||||||
panelSliders.SuspendLayout();
|
panelSliders.SuspendLayout();
|
||||||
panelPower.SuspendLayout();
|
panelPower.SuspendLayout();
|
||||||
panelApplyPower.SuspendLayout();
|
panelApplyPower.SuspendLayout();
|
||||||
@@ -116,53 +120,102 @@ namespace GHelper
|
|||||||
//
|
//
|
||||||
// panelFans
|
// panelFans
|
||||||
//
|
//
|
||||||
panelFans.Controls.Add(labelFansResult);
|
panelFans.AutoSize = true;
|
||||||
panelFans.Controls.Add(labelTip);
|
|
||||||
panelFans.Controls.Add(labelBoost);
|
|
||||||
panelFans.Controls.Add(comboBoost);
|
|
||||||
panelFans.Controls.Add(picturePerf);
|
|
||||||
panelFans.Controls.Add(tableFanCharts);
|
panelFans.Controls.Add(tableFanCharts);
|
||||||
panelFans.Controls.Add(labelFans);
|
panelFans.Controls.Add(panelTitleFans);
|
||||||
panelFans.Controls.Add(checkApplyFans);
|
panelFans.Controls.Add(panelApplyFans);
|
||||||
panelFans.Controls.Add(buttonReset);
|
panelFans.Controls.Add(labelTip);
|
||||||
panelFans.Dock = DockStyle.Left;
|
panelFans.Dock = DockStyle.Left;
|
||||||
panelFans.Location = new Point(533, 0);
|
panelFans.Location = new Point(533, 0);
|
||||||
panelFans.Margin = new Padding(0);
|
panelFans.Margin = new Padding(0);
|
||||||
|
panelFans.MinimumSize = new Size(815, 0);
|
||||||
panelFans.Name = "panelFans";
|
panelFans.Name = "panelFans";
|
||||||
panelFans.Padding = new Padding(10);
|
panelFans.Padding = new Padding(0, 0, 10, 0);
|
||||||
panelFans.Size = new Size(824, 1189);
|
panelFans.Size = new Size(815, 1189);
|
||||||
panelFans.TabIndex = 12;
|
panelFans.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// labelFansResult
|
// tableFanCharts
|
||||||
//
|
//
|
||||||
labelFansResult.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
tableFanCharts.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
labelFansResult.ForeColor = Color.Red;
|
tableFanCharts.ColumnCount = 1;
|
||||||
labelFansResult.Location = new Point(30, 1073);
|
tableFanCharts.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
|
||||||
labelFansResult.Name = "labelFansResult";
|
tableFanCharts.Controls.Add(chartGPU, 0, 1);
|
||||||
labelFansResult.Size = new Size(760, 32);
|
tableFanCharts.Controls.Add(chartCPU, 0, 0);
|
||||||
labelFansResult.TabIndex = 41;
|
tableFanCharts.Controls.Add(chartMid, 0, 2);
|
||||||
labelFansResult.TextAlign = ContentAlignment.TopRight;
|
tableFanCharts.Dock = DockStyle.Fill;
|
||||||
labelFansResult.Visible = false;
|
tableFanCharts.Location = new Point(0, 66);
|
||||||
|
tableFanCharts.Margin = new Padding(4);
|
||||||
|
tableFanCharts.Name = "tableFanCharts";
|
||||||
|
tableFanCharts.Padding = new Padding(10, 0, 10, 10);
|
||||||
|
tableFanCharts.RowCount = 2;
|
||||||
|
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 33F));
|
||||||
|
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 33F));
|
||||||
|
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 33F));
|
||||||
|
tableFanCharts.Size = new Size(805, 1007);
|
||||||
|
tableFanCharts.TabIndex = 36;
|
||||||
//
|
//
|
||||||
// labelTip
|
// chartGPU
|
||||||
//
|
//
|
||||||
labelTip.AutoSize = true;
|
chartArea1.Name = "ChartArea1";
|
||||||
labelTip.BackColor = SystemColors.ControlLightLight;
|
chartGPU.ChartAreas.Add(chartArea1);
|
||||||
labelTip.Location = new Point(155, 9);
|
chartGPU.Dock = DockStyle.Fill;
|
||||||
labelTip.Name = "labelTip";
|
chartGPU.Location = new Point(12, 342);
|
||||||
labelTip.Padding = new Padding(5);
|
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
||||||
labelTip.Size = new Size(107, 42);
|
chartGPU.Name = "chartGPU";
|
||||||
labelTip.TabIndex = 40;
|
chartGPU.Size = new Size(781, 312);
|
||||||
labelTip.Text = "500,300";
|
chartGPU.TabIndex = 17;
|
||||||
|
chartGPU.Text = "chartGPU";
|
||||||
|
title1.Name = "Title1";
|
||||||
|
chartGPU.Titles.Add(title1);
|
||||||
|
//
|
||||||
|
// chartCPU
|
||||||
|
//
|
||||||
|
chartArea2.Name = "ChartArea1";
|
||||||
|
chartCPU.ChartAreas.Add(chartArea2);
|
||||||
|
chartCPU.Dock = DockStyle.Fill;
|
||||||
|
chartCPU.Location = new Point(12, 10);
|
||||||
|
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
||||||
|
chartCPU.Name = "chartCPU";
|
||||||
|
chartCPU.Size = new Size(781, 312);
|
||||||
|
chartCPU.TabIndex = 14;
|
||||||
|
chartCPU.Text = "chartCPU";
|
||||||
|
title2.Name = "Title1";
|
||||||
|
chartCPU.Titles.Add(title2);
|
||||||
|
//
|
||||||
|
// chartMid
|
||||||
|
//
|
||||||
|
chartArea3.Name = "ChartArea3";
|
||||||
|
chartMid.ChartAreas.Add(chartArea3);
|
||||||
|
chartMid.Dock = DockStyle.Fill;
|
||||||
|
chartMid.Location = new Point(12, 674);
|
||||||
|
chartMid.Margin = new Padding(2, 10, 2, 10);
|
||||||
|
chartMid.Name = "chartMid";
|
||||||
|
chartMid.Size = new Size(781, 313);
|
||||||
|
chartMid.TabIndex = 14;
|
||||||
|
chartMid.Text = "chartMid";
|
||||||
|
title3.Name = "Title3";
|
||||||
|
chartMid.Titles.Add(title3);
|
||||||
|
chartMid.Visible = false;
|
||||||
|
//
|
||||||
|
// panelTitleFans
|
||||||
|
//
|
||||||
|
panelTitleFans.Controls.Add(labelBoost);
|
||||||
|
panelTitleFans.Controls.Add(comboBoost);
|
||||||
|
panelTitleFans.Controls.Add(picturePerf);
|
||||||
|
panelTitleFans.Controls.Add(labelFans);
|
||||||
|
panelTitleFans.Dock = DockStyle.Top;
|
||||||
|
panelTitleFans.Location = new Point(0, 0);
|
||||||
|
panelTitleFans.Name = "panelTitleFans";
|
||||||
|
panelTitleFans.Size = new Size(805, 66);
|
||||||
|
panelTitleFans.TabIndex = 42;
|
||||||
//
|
//
|
||||||
// labelBoost
|
// labelBoost
|
||||||
//
|
//
|
||||||
labelBoost.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
labelBoost.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||||
labelBoost.AutoSize = true;
|
labelBoost.Location = new Point(335, 20);
|
||||||
labelBoost.Location = new Point(375, 17);
|
|
||||||
labelBoost.Name = "labelBoost";
|
labelBoost.Name = "labelBoost";
|
||||||
labelBoost.Size = new Size(125, 32);
|
labelBoost.Size = new Size(143, 32);
|
||||||
labelBoost.TabIndex = 39;
|
labelBoost.TabIndex = 43;
|
||||||
labelBoost.Text = "CPU Boost";
|
labelBoost.Text = "CPU Boost";
|
||||||
labelBoost.TextAlign = ContentAlignment.MiddleRight;
|
labelBoost.TextAlign = ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
@@ -174,106 +227,66 @@ namespace GHelper
|
|||||||
comboBoost.DropDownStyle = ComboBoxStyle.DropDownList;
|
comboBoost.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||||
comboBoost.FormattingEnabled = true;
|
comboBoost.FormattingEnabled = true;
|
||||||
comboBoost.Items.AddRange(new object[] { "Disabled", "Enabled", "Aggressive", "Efficient Enabled", "Efficient Aggressive" });
|
comboBoost.Items.AddRange(new object[] { "Disabled", "Enabled", "Aggressive", "Efficient Enabled", "Efficient Aggressive" });
|
||||||
comboBoost.Location = new Point(526, 15);
|
comboBoost.Location = new Point(503, 16);
|
||||||
comboBoost.Name = "comboBoost";
|
comboBoost.Name = "comboBoost";
|
||||||
comboBoost.Size = new Size(266, 40);
|
comboBoost.Size = new Size(287, 40);
|
||||||
comboBoost.TabIndex = 38;
|
comboBoost.TabIndex = 42;
|
||||||
//
|
//
|
||||||
// picturePerf
|
// picturePerf
|
||||||
//
|
//
|
||||||
picturePerf.BackgroundImage = Properties.Resources.icons8_fan_head_96;
|
picturePerf.BackgroundImage = Properties.Resources.icons8_fan_head_96;
|
||||||
picturePerf.BackgroundImageLayout = ImageLayout.Zoom;
|
picturePerf.BackgroundImageLayout = ImageLayout.Zoom;
|
||||||
picturePerf.InitialImage = null;
|
picturePerf.InitialImage = null;
|
||||||
picturePerf.Location = new Point(30, 18);
|
picturePerf.Location = new Point(20, 18);
|
||||||
picturePerf.Margin = new Padding(4, 2, 4, 2);
|
picturePerf.Margin = new Padding(4, 2, 4, 2);
|
||||||
picturePerf.Name = "picturePerf";
|
picturePerf.Name = "picturePerf";
|
||||||
picturePerf.Size = new Size(36, 38);
|
picturePerf.Size = new Size(36, 38);
|
||||||
picturePerf.TabIndex = 37;
|
picturePerf.TabIndex = 41;
|
||||||
picturePerf.TabStop = false;
|
picturePerf.TabStop = false;
|
||||||
//
|
//
|
||||||
// tableFanCharts
|
|
||||||
//
|
|
||||||
tableFanCharts.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
tableFanCharts.ColumnCount = 1;
|
|
||||||
tableFanCharts.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
|
|
||||||
tableFanCharts.Controls.Add(chartGPU, 0, 1);
|
|
||||||
tableFanCharts.Controls.Add(chartCPU, 0, 0);
|
|
||||||
tableFanCharts.Controls.Add(chartMid, 0, 2);
|
|
||||||
tableFanCharts.Location = new Point(28, 64);
|
|
||||||
tableFanCharts.Margin = new Padding(4);
|
|
||||||
tableFanCharts.Name = "tableFanCharts";
|
|
||||||
tableFanCharts.RowCount = 2;
|
|
||||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 33F));
|
|
||||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 33F));
|
|
||||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 33F));
|
|
||||||
tableFanCharts.Size = new Size(764, 1022);
|
|
||||||
tableFanCharts.TabIndex = 36;
|
|
||||||
//
|
|
||||||
// chartGPU
|
|
||||||
//
|
|
||||||
chartArea1.Name = "ChartArea1";
|
|
||||||
chartGPU.ChartAreas.Add(chartArea1);
|
|
||||||
chartGPU.Dock = DockStyle.Fill;
|
|
||||||
chartGPU.Location = new Point(2, 350);
|
|
||||||
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
|
||||||
chartGPU.Name = "chartGPU";
|
|
||||||
chartGPU.Size = new Size(760, 320);
|
|
||||||
chartGPU.TabIndex = 17;
|
|
||||||
chartGPU.Text = "chartGPU";
|
|
||||||
title1.Name = "Title1";
|
|
||||||
chartGPU.Titles.Add(title1);
|
|
||||||
//
|
|
||||||
// chartCPU
|
|
||||||
//
|
|
||||||
chartArea2.Name = "ChartArea1";
|
|
||||||
chartCPU.ChartAreas.Add(chartArea2);
|
|
||||||
chartCPU.Dock = DockStyle.Fill;
|
|
||||||
chartCPU.Location = new Point(2, 10);
|
|
||||||
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
|
||||||
chartCPU.Name = "chartCPU";
|
|
||||||
chartCPU.Size = new Size(760, 320);
|
|
||||||
chartCPU.TabIndex = 14;
|
|
||||||
chartCPU.Text = "chartCPU";
|
|
||||||
title2.Name = "Title1";
|
|
||||||
chartCPU.Titles.Add(title2);
|
|
||||||
//
|
|
||||||
// chartMid
|
|
||||||
//
|
|
||||||
chartArea3.Name = "ChartArea3";
|
|
||||||
chartMid.ChartAreas.Add(chartArea3);
|
|
||||||
chartMid.Dock = DockStyle.Fill;
|
|
||||||
chartMid.Location = new Point(2, 690);
|
|
||||||
chartMid.Margin = new Padding(2, 10, 2, 10);
|
|
||||||
chartMid.Name = "chartMid";
|
|
||||||
chartMid.Size = new Size(760, 322);
|
|
||||||
chartMid.TabIndex = 14;
|
|
||||||
chartMid.Text = "chartMid";
|
|
||||||
title3.Name = "Title3";
|
|
||||||
chartMid.Titles.Add(title3);
|
|
||||||
chartMid.Visible = false;
|
|
||||||
//
|
|
||||||
// labelFans
|
// labelFans
|
||||||
//
|
//
|
||||||
labelFans.AutoSize = true;
|
|
||||||
labelFans.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
labelFans.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||||
labelFans.Location = new Point(66, 20);
|
labelFans.Location = new Point(64, 20);
|
||||||
labelFans.Margin = new Padding(4, 0, 4, 0);
|
labelFans.Margin = new Padding(4, 0, 4, 0);
|
||||||
labelFans.Name = "labelFans";
|
labelFans.Name = "labelFans";
|
||||||
labelFans.Size = new Size(138, 32);
|
labelFans.Size = new Size(293, 32);
|
||||||
labelFans.TabIndex = 28;
|
labelFans.TabIndex = 40;
|
||||||
labelFans.Text = "Fan Curves";
|
labelFans.Text = "Fan Curves";
|
||||||
//
|
//
|
||||||
|
// panelApplyFans
|
||||||
|
//
|
||||||
|
panelApplyFans.Controls.Add(labelFansResult);
|
||||||
|
panelApplyFans.Controls.Add(checkApplyFans);
|
||||||
|
panelApplyFans.Controls.Add(buttonReset);
|
||||||
|
panelApplyFans.Dock = DockStyle.Bottom;
|
||||||
|
panelApplyFans.Location = new Point(0, 1073);
|
||||||
|
panelApplyFans.Name = "panelApplyFans";
|
||||||
|
panelApplyFans.Size = new Size(805, 116);
|
||||||
|
panelApplyFans.TabIndex = 43;
|
||||||
|
//
|
||||||
|
// labelFansResult
|
||||||
|
//
|
||||||
|
labelFansResult.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
labelFansResult.ForeColor = Color.Red;
|
||||||
|
labelFansResult.Location = new Point(25, 3);
|
||||||
|
labelFansResult.Name = "labelFansResult";
|
||||||
|
labelFansResult.Size = new Size(760, 32);
|
||||||
|
labelFansResult.TabIndex = 42;
|
||||||
|
labelFansResult.TextAlign = ContentAlignment.TopRight;
|
||||||
|
labelFansResult.Visible = false;
|
||||||
|
//
|
||||||
// checkApplyFans
|
// checkApplyFans
|
||||||
//
|
//
|
||||||
checkApplyFans.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
checkApplyFans.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
||||||
checkApplyFans.AutoSize = true;
|
checkApplyFans.AutoSize = true;
|
||||||
checkApplyFans.BackColor = SystemColors.ControlLight;
|
checkApplyFans.BackColor = SystemColors.ControlLight;
|
||||||
checkApplyFans.Location = new Point(449, 1118);
|
checkApplyFans.Location = new Point(454, 46);
|
||||||
checkApplyFans.Margin = new Padding(4, 2, 4, 2);
|
checkApplyFans.Margin = new Padding(4, 2, 4, 2);
|
||||||
checkApplyFans.Name = "checkApplyFans";
|
checkApplyFans.Name = "checkApplyFans";
|
||||||
checkApplyFans.Padding = new Padding(15, 5, 15, 5);
|
checkApplyFans.Padding = new Padding(15, 5, 15, 5);
|
||||||
checkApplyFans.Size = new Size(339, 46);
|
checkApplyFans.Size = new Size(339, 46);
|
||||||
checkApplyFans.TabIndex = 17;
|
checkApplyFans.TabIndex = 19;
|
||||||
checkApplyFans.Text = Properties.Strings.ApplyFanCurve;
|
checkApplyFans.Text = Properties.Strings.ApplyFanCurve;
|
||||||
checkApplyFans.UseVisualStyleBackColor = false;
|
checkApplyFans.UseVisualStyleBackColor = false;
|
||||||
//
|
//
|
||||||
@@ -285,15 +298,26 @@ namespace GHelper
|
|||||||
buttonReset.BorderColor = Color.Transparent;
|
buttonReset.BorderColor = Color.Transparent;
|
||||||
buttonReset.BorderRadius = 2;
|
buttonReset.BorderRadius = 2;
|
||||||
buttonReset.FlatStyle = FlatStyle.Flat;
|
buttonReset.FlatStyle = FlatStyle.Flat;
|
||||||
buttonReset.Location = new Point(30, 1112);
|
buttonReset.Location = new Point(12, 38);
|
||||||
buttonReset.Margin = new Padding(4, 2, 4, 2);
|
buttonReset.Margin = new Padding(4, 2, 4, 2);
|
||||||
buttonReset.Name = "buttonReset";
|
buttonReset.Name = "buttonReset";
|
||||||
buttonReset.Secondary = true;
|
buttonReset.Secondary = true;
|
||||||
buttonReset.Size = new Size(232, 54);
|
buttonReset.Size = new Size(232, 54);
|
||||||
buttonReset.TabIndex = 15;
|
buttonReset.TabIndex = 18;
|
||||||
buttonReset.Text = Properties.Strings.FactoryDefaults;
|
buttonReset.Text = Properties.Strings.FactoryDefaults;
|
||||||
buttonReset.UseVisualStyleBackColor = false;
|
buttonReset.UseVisualStyleBackColor = false;
|
||||||
//
|
//
|
||||||
|
// labelTip
|
||||||
|
//
|
||||||
|
labelTip.AutoSize = true;
|
||||||
|
labelTip.BackColor = SystemColors.ControlLightLight;
|
||||||
|
labelTip.Location = new Point(684, 91);
|
||||||
|
labelTip.Name = "labelTip";
|
||||||
|
labelTip.Padding = new Padding(5);
|
||||||
|
labelTip.Size = new Size(107, 42);
|
||||||
|
labelTip.TabIndex = 40;
|
||||||
|
labelTip.Text = "500,300";
|
||||||
|
//
|
||||||
// panelSliders
|
// panelSliders
|
||||||
//
|
//
|
||||||
panelSliders.Controls.Add(panelPower);
|
panelSliders.Controls.Add(panelPower);
|
||||||
@@ -325,10 +349,10 @@ namespace GHelper
|
|||||||
//
|
//
|
||||||
panelApplyPower.Controls.Add(checkApplyPower);
|
panelApplyPower.Controls.Add(checkApplyPower);
|
||||||
panelApplyPower.Dock = DockStyle.Bottom;
|
panelApplyPower.Dock = DockStyle.Bottom;
|
||||||
panelApplyPower.Location = new Point(0, 445);
|
panelApplyPower.Location = new Point(0, 447);
|
||||||
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, 90);
|
||||||
panelApplyPower.TabIndex = 44;
|
panelApplyPower.TabIndex = 44;
|
||||||
//
|
//
|
||||||
// checkApplyPower
|
// checkApplyPower
|
||||||
@@ -336,7 +360,7 @@ namespace GHelper
|
|||||||
checkApplyPower.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
checkApplyPower.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
||||||
checkApplyPower.AutoSize = true;
|
checkApplyPower.AutoSize = true;
|
||||||
checkApplyPower.BackColor = SystemColors.ControlLight;
|
checkApplyPower.BackColor = SystemColors.ControlLight;
|
||||||
checkApplyPower.Location = new Point(18, 22);
|
checkApplyPower.Location = new Point(18, 20);
|
||||||
checkApplyPower.Margin = new Padding(10);
|
checkApplyPower.Margin = new Padding(10);
|
||||||
checkApplyPower.Name = "checkApplyPower";
|
checkApplyPower.Name = "checkApplyPower";
|
||||||
checkApplyPower.Padding = new Padding(15, 5, 15, 5);
|
checkApplyPower.Padding = new Padding(15, 5, 15, 5);
|
||||||
@@ -724,7 +748,7 @@ namespace GHelper
|
|||||||
//
|
//
|
||||||
labelGPU.AutoSize = true;
|
labelGPU.AutoSize = true;
|
||||||
labelGPU.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
labelGPU.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||||
labelGPU.Location = new Point(62, 21);
|
labelGPU.Location = new Point(62, 20);
|
||||||
labelGPU.Margin = new Padding(4, 0, 4, 0);
|
labelGPU.Margin = new Padding(4, 0, 4, 0);
|
||||||
labelGPU.Name = "labelGPU";
|
labelGPU.Name = "labelGPU";
|
||||||
labelGPU.Size = new Size(162, 32);
|
labelGPU.Size = new Size(162, 32);
|
||||||
@@ -737,7 +761,7 @@ namespace GHelper
|
|||||||
AutoScaleMode = AutoScaleMode.Dpi;
|
AutoScaleMode = AutoScaleMode.Dpi;
|
||||||
AutoSize = true;
|
AutoSize = true;
|
||||||
AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||||
ClientSize = new Size(1361, 1189);
|
ClientSize = new Size(1356, 1189);
|
||||||
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);
|
||||||
@@ -752,11 +776,14 @@ namespace GHelper
|
|||||||
Text = "Fans and Power";
|
Text = "Fans and Power";
|
||||||
panelFans.ResumeLayout(false);
|
panelFans.ResumeLayout(false);
|
||||||
panelFans.PerformLayout();
|
panelFans.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)picturePerf).EndInit();
|
|
||||||
tableFanCharts.ResumeLayout(false);
|
tableFanCharts.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)chartGPU).EndInit();
|
((System.ComponentModel.ISupportInitialize)chartGPU).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)chartCPU).EndInit();
|
((System.ComponentModel.ISupportInitialize)chartCPU).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)chartMid).EndInit();
|
((System.ComponentModel.ISupportInitialize)chartMid).EndInit();
|
||||||
|
panelTitleFans.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)picturePerf).EndInit();
|
||||||
|
panelApplyFans.ResumeLayout(false);
|
||||||
|
panelApplyFans.PerformLayout();
|
||||||
panelSliders.ResumeLayout(false);
|
panelSliders.ResumeLayout(false);
|
||||||
panelSliders.PerformLayout();
|
panelSliders.PerformLayout();
|
||||||
panelPower.ResumeLayout(false);
|
panelPower.ResumeLayout(false);
|
||||||
@@ -790,23 +817,17 @@ namespace GHelper
|
|||||||
panelTitleGPU.PerformLayout();
|
panelTitleGPU.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureGPU).EndInit();
|
((System.ComponentModel.ISupportInitialize)pictureGPU).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
private Panel panelFans;
|
private Panel panelFans;
|
||||||
private RCheckBox checkApplyFans;
|
|
||||||
private RButton buttonReset;
|
|
||||||
private Panel panelSliders;
|
private Panel panelSliders;
|
||||||
private TableLayoutPanel tableFanCharts;
|
private TableLayoutPanel tableFanCharts;
|
||||||
private System.Windows.Forms.DataVisualization.Charting.Chart chartGPU;
|
private Chart chartGPU;
|
||||||
private System.Windows.Forms.DataVisualization.Charting.Chart chartCPU;
|
private Chart chartCPU;
|
||||||
private System.Windows.Forms.DataVisualization.Charting.Chart chartMid;
|
private Chart chartMid;
|
||||||
private Label labelFans;
|
|
||||||
private PictureBox picturePerf;
|
|
||||||
private RComboBox comboBoost;
|
|
||||||
private Label labelBoost;
|
|
||||||
private Label labelTip;
|
private Label labelTip;
|
||||||
private Label labelFansResult;
|
|
||||||
private Panel panelPower;
|
private Panel panelPower;
|
||||||
private Label labelInfo;
|
private Label labelInfo;
|
||||||
private Panel panelCPU;
|
private Panel panelCPU;
|
||||||
@@ -842,5 +863,14 @@ namespace GHelper
|
|||||||
private Label labelGPUTemp;
|
private Label labelGPUTemp;
|
||||||
private Label labelGPUTempTitle;
|
private Label labelGPUTempTitle;
|
||||||
private TrackBar trackGPUTemp;
|
private TrackBar trackGPUTemp;
|
||||||
|
private Panel panelTitleFans;
|
||||||
|
private Panel panelApplyFans;
|
||||||
|
private Label labelFansResult;
|
||||||
|
private RCheckBox checkApplyFans;
|
||||||
|
private RButton buttonReset;
|
||||||
|
private Label labelBoost;
|
||||||
|
private RComboBox comboBoost;
|
||||||
|
private PictureBox picturePerf;
|
||||||
|
private Label labelFans;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
13
app/Fans.cs
13
app/Fans.cs
@@ -153,7 +153,7 @@ namespace GHelper
|
|||||||
|
|
||||||
if (gpu_boost < 0) gpu_boost = ASUSWmi.MaxGPUBoost;
|
if (gpu_boost < 0) gpu_boost = ASUSWmi.MaxGPUBoost;
|
||||||
if (gpu_temp < 0) gpu_temp = ASUSWmi.MaxGPUTemp;
|
if (gpu_temp < 0) gpu_temp = ASUSWmi.MaxGPUTemp;
|
||||||
|
|
||||||
if (core == -1) core = 0;
|
if (core == -1) core = 0;
|
||||||
if (memory == -1) memory = 0;
|
if (memory == -1) memory = 0;
|
||||||
|
|
||||||
@@ -169,7 +169,8 @@ namespace GHelper
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
labelGPU.Text = nvControl.FullName;
|
labelGPU.Text = nvControl.FullName;
|
||||||
} catch
|
}
|
||||||
|
catch
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -263,10 +264,10 @@ namespace GHelper
|
|||||||
chart.ChartAreas[0].AxisX.LineColor = chartGrid;
|
chart.ChartAreas[0].AxisX.LineColor = chartGrid;
|
||||||
chart.ChartAreas[0].AxisY.LineColor = chartGrid;
|
chart.ChartAreas[0].AxisY.LineColor = chartGrid;
|
||||||
|
|
||||||
for (int i = 0; i <= fansMax-10; i += 10)
|
for (int i = 0; i <= fansMax - 10; i += 10)
|
||||||
chart.ChartAreas[0].AxisY.CustomLabels.Add(i - 2, i + 2, ChartPercToRPM(i));
|
chart.ChartAreas[0].AxisY.CustomLabels.Add(i - 2, i + 2, ChartPercToRPM(i));
|
||||||
|
|
||||||
chart.ChartAreas[0].AxisY.CustomLabels.Add(fansMax-2, fansMax+2, Properties.Strings.RPM);
|
chart.ChartAreas[0].AxisY.CustomLabels.Add(fansMax - 2, fansMax + 2, Properties.Strings.RPM);
|
||||||
|
|
||||||
chart.ChartAreas[0].AxisY.Interval = 10;
|
chart.ChartAreas[0].AxisY.Interval = 10;
|
||||||
|
|
||||||
@@ -478,8 +479,8 @@ namespace GHelper
|
|||||||
if (def == 1 || ASUSWmi.IsEmptyCurve(curve))
|
if (def == 1 || ASUSWmi.IsEmptyCurve(curve))
|
||||||
{
|
{
|
||||||
curve = Program.wmi.GetFanCurve(device, mode);
|
curve = Program.wmi.GetFanCurve(device, mode);
|
||||||
|
|
||||||
if (ASUSWmi.IsEmptyCurve(curve))
|
if (ASUSWmi.IsEmptyCurve(curve))
|
||||||
curve = Program.config.getDefaultCurve(device);
|
curve = Program.config.getDefaultCurve(device);
|
||||||
|
|
||||||
curve = ASUSWmi.FixFanCurve(curve);
|
curve = ASUSWmi.FixFanCurve(curve);
|
||||||
|
|||||||
@@ -1,4 +1,64 @@
|
|||||||
<root>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
|||||||
@@ -659,7 +659,7 @@ namespace GHelper
|
|||||||
|
|
||||||
matrix = new AniMatrix();
|
matrix = new AniMatrix();
|
||||||
|
|
||||||
if (matrix is null)
|
if (!AniMatrix.IsValid)
|
||||||
{
|
{
|
||||||
panelMatrix.Visible = false;
|
panelMatrix.Visible = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user