Renamed some controls

This commit is contained in:
IceStormNG
2024-03-02 17:30:36 +01:00
parent adcec744d4
commit 61803dbc39

View File

@@ -32,15 +32,15 @@
pictureKeyboard = new PictureBox(); pictureKeyboard = new PictureBox();
labelSettings = new Label(); labelSettings = new Label();
checkBoxEnabled = new CheckBox(); checkBoxEnabled = new CheckBox();
panelLightingContent = new Panel(); panelGameSettings = new Panel();
labelMinTDP = new Label(); labelMinTDP = new Label();
labelMaxTDP = new Label(); labelMaxTDP = new Label();
sliderMaxTDP = new UI.Slider(); sliderMaxTDP = new UI.Slider();
numericUpDownFPS = new NumericUpDown(); numericUpDownFPS = new NumericUpDown();
sliderMinTDP = new UI.Slider(); sliderMinTDP = new UI.Slider();
label2 = new Label(); labelMaxTDPText = new Label();
label3 = new Label(); labeMinTDPText = new Label();
label1 = new Label(); labelTargetFPS = new Label();
textBoxTitle = new TextBox(); textBoxTitle = new TextBox();
textBoxProcessName = new TextBox(); textBoxProcessName = new TextBox();
labelFPSSource = new Label(); labelFPSSource = new Label();
@@ -49,7 +49,7 @@
buttonDelete = new UI.RButton(); buttonDelete = new UI.RButton();
panelPerformanceHeader.SuspendLayout(); panelPerformanceHeader.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureKeyboard).BeginInit(); ((System.ComponentModel.ISupportInitialize)pictureKeyboard).BeginInit();
panelLightingContent.SuspendLayout(); panelGameSettings.SuspendLayout();
((System.ComponentModel.ISupportInitialize)numericUpDownFPS).BeginInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownFPS).BeginInit();
SuspendLayout(); SuspendLayout();
// //
@@ -61,19 +61,17 @@
panelPerformanceHeader.Controls.Add(checkBoxEnabled); panelPerformanceHeader.Controls.Add(checkBoxEnabled);
panelPerformanceHeader.Dock = DockStyle.Top; panelPerformanceHeader.Dock = DockStyle.Top;
panelPerformanceHeader.Location = new Point(0, 0); panelPerformanceHeader.Location = new Point(0, 0);
panelPerformanceHeader.Margin = new Padding(2);
panelPerformanceHeader.Name = "panelPerformanceHeader"; panelPerformanceHeader.Name = "panelPerformanceHeader";
panelPerformanceHeader.Size = new Size(386, 30); panelPerformanceHeader.Size = new Size(551, 50);
panelPerformanceHeader.TabIndex = 53; panelPerformanceHeader.TabIndex = 53;
// //
// pictureKeyboard // pictureKeyboard
// //
pictureKeyboard.BackgroundImage = Properties.Resources.icons8_automation_32; pictureKeyboard.BackgroundImage = Properties.Resources.icons8_automation_32;
pictureKeyboard.BackgroundImageLayout = ImageLayout.Zoom; pictureKeyboard.BackgroundImageLayout = ImageLayout.Zoom;
pictureKeyboard.Location = new Point(3, 8); pictureKeyboard.Location = new Point(4, 13);
pictureKeyboard.Margin = new Padding(2);
pictureKeyboard.Name = "pictureKeyboard"; pictureKeyboard.Name = "pictureKeyboard";
pictureKeyboard.Size = new Size(16, 16); pictureKeyboard.Size = new Size(23, 27);
pictureKeyboard.TabIndex = 35; pictureKeyboard.TabIndex = 35;
pictureKeyboard.TabStop = false; pictureKeyboard.TabStop = false;
// //
@@ -81,60 +79,61 @@
// //
labelSettings.AutoSize = true; labelSettings.AutoSize = true;
labelSettings.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); labelSettings.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelSettings.Location = new Point(22, 8); labelSettings.Location = new Point(31, 13);
labelSettings.Margin = new Padding(4, 0, 4, 0); labelSettings.Margin = new Padding(6, 0, 6, 0);
labelSettings.Name = "labelSettings"; labelSettings.Name = "labelSettings";
labelSettings.Size = new Size(89, 15); labelSettings.Size = new Size(135, 25);
labelSettings.TabIndex = 34; labelSettings.TabIndex = 34;
labelSettings.Text = "Game Settings"; labelSettings.Text = "Game Settings";
// //
// checkBoxEnabled // checkBoxEnabled
// //
checkBoxEnabled.Location = new Point(241, 2); checkBoxEnabled.Location = new Point(344, 3);
checkBoxEnabled.Margin = new Padding(4, 0, 4, 0); checkBoxEnabled.Margin = new Padding(6, 0, 6, 0);
checkBoxEnabled.Name = "checkBoxEnabled"; checkBoxEnabled.Name = "checkBoxEnabled";
checkBoxEnabled.Size = new Size(136, 25); checkBoxEnabled.Size = new Size(194, 42);
checkBoxEnabled.TabIndex = 53; checkBoxEnabled.TabIndex = 53;
checkBoxEnabled.Text = "Enabled"; checkBoxEnabled.Text = "Enabled";
checkBoxEnabled.UseVisualStyleBackColor = true; checkBoxEnabled.UseVisualStyleBackColor = true;
// //
// panelLightingContent // panelGameSettings
// //
panelLightingContent.AutoSize = true; panelGameSettings.AutoSize = true;
panelLightingContent.Controls.Add(labelMinTDP); panelGameSettings.Controls.Add(labelMinTDP);
panelLightingContent.Controls.Add(labelMaxTDP); panelGameSettings.Controls.Add(labelMaxTDP);
panelLightingContent.Controls.Add(sliderMaxTDP); panelGameSettings.Controls.Add(sliderMaxTDP);
panelLightingContent.Controls.Add(numericUpDownFPS); panelGameSettings.Controls.Add(numericUpDownFPS);
panelLightingContent.Controls.Add(sliderMinTDP); panelGameSettings.Controls.Add(sliderMinTDP);
panelLightingContent.Controls.Add(label2); panelGameSettings.Controls.Add(labelMaxTDPText);
panelLightingContent.Controls.Add(label3); panelGameSettings.Controls.Add(labeMinTDPText);
panelLightingContent.Controls.Add(label1); panelGameSettings.Controls.Add(labelTargetFPS);
panelLightingContent.Controls.Add(textBoxTitle); panelGameSettings.Controls.Add(textBoxTitle);
panelLightingContent.Controls.Add(textBoxProcessName); panelGameSettings.Controls.Add(textBoxProcessName);
panelLightingContent.Controls.Add(labelFPSSource); panelGameSettings.Controls.Add(labelFPSSource);
panelLightingContent.Controls.Add(labelLimiter); panelGameSettings.Controls.Add(labelLimiter);
panelLightingContent.Dock = DockStyle.Top; panelGameSettings.Dock = DockStyle.Top;
panelLightingContent.Location = new Point(0, 30); panelGameSettings.Location = new Point(0, 50);
panelLightingContent.Margin = new Padding(2); panelGameSettings.Name = "panelGameSettings";
panelLightingContent.Name = "panelLightingContent"; panelGameSettings.Padding = new Padding(0, 0, 0, 12);
panelLightingContent.Padding = new Padding(0, 0, 0, 7); panelGameSettings.Size = new Size(551, 244);
panelLightingContent.Size = new Size(386, 146); panelGameSettings.TabIndex = 57;
panelLightingContent.TabIndex = 57;
// //
// labelMinTDP // labelMinTDP
// //
labelMinTDP.Location = new Point(342, 91); labelMinTDP.Location = new Point(489, 152);
labelMinTDP.Margin = new Padding(4, 0, 4, 0);
labelMinTDP.Name = "labelMinTDP"; labelMinTDP.Name = "labelMinTDP";
labelMinTDP.Size = new Size(39, 22); labelMinTDP.Size = new Size(56, 37);
labelMinTDP.TabIndex = 67; labelMinTDP.TabIndex = 67;
labelMinTDP.Text = "30W"; labelMinTDP.Text = "30W";
labelMinTDP.TextAlign = ContentAlignment.MiddleRight; labelMinTDP.TextAlign = ContentAlignment.MiddleRight;
// //
// labelMaxTDP // labelMaxTDP
// //
labelMaxTDP.Location = new Point(341, 117); labelMaxTDP.Location = new Point(487, 195);
labelMaxTDP.Margin = new Padding(4, 0, 4, 0);
labelMaxTDP.Name = "labelMaxTDP"; labelMaxTDP.Name = "labelMaxTDP";
labelMaxTDP.Size = new Size(40, 22); labelMaxTDP.Size = new Size(57, 37);
labelMaxTDP.TabIndex = 66; labelMaxTDP.TabIndex = 66;
labelMaxTDP.Text = "150W"; labelMaxTDP.Text = "150W";
labelMaxTDP.TextAlign = ContentAlignment.MiddleRight; labelMaxTDP.TextAlign = ContentAlignment.MiddleRight;
@@ -142,12 +141,11 @@
// sliderMaxTDP // sliderMaxTDP
// //
sliderMaxTDP.AccessibleName = "DPI Slider"; sliderMaxTDP.AccessibleName = "DPI Slider";
sliderMaxTDP.Location = new Point(140, 117); sliderMaxTDP.Location = new Point(200, 195);
sliderMaxTDP.Margin = new Padding(2);
sliderMaxTDP.Max = 200; sliderMaxTDP.Max = 200;
sliderMaxTDP.Min = 5; sliderMaxTDP.Min = 5;
sliderMaxTDP.Name = "sliderMaxTDP"; sliderMaxTDP.Name = "sliderMaxTDP";
sliderMaxTDP.Size = new Size(204, 20); sliderMaxTDP.Size = new Size(291, 33);
sliderMaxTDP.Step = 1; sliderMaxTDP.Step = 1;
sliderMaxTDP.TabIndex = 65; sliderMaxTDP.TabIndex = 65;
sliderMaxTDP.TabStop = false; sliderMaxTDP.TabStop = false;
@@ -157,12 +155,11 @@
// numericUpDownFPS // numericUpDownFPS
// //
numericUpDownFPS.BorderStyle = BorderStyle.None; numericUpDownFPS.BorderStyle = BorderStyle.None;
numericUpDownFPS.Location = new Point(291, 66); numericUpDownFPS.Location = new Point(416, 110);
numericUpDownFPS.Margin = new Padding(2);
numericUpDownFPS.Maximum = new decimal(new int[] { 1000, 0, 0, 0 }); numericUpDownFPS.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
numericUpDownFPS.Minimum = new decimal(new int[] { 20, 0, 0, 0 }); numericUpDownFPS.Minimum = new decimal(new int[] { 20, 0, 0, 0 });
numericUpDownFPS.Name = "numericUpDownFPS"; numericUpDownFPS.Name = "numericUpDownFPS";
numericUpDownFPS.Size = new Size(86, 19); numericUpDownFPS.Size = new Size(123, 27);
numericUpDownFPS.TabIndex = 64; numericUpDownFPS.TabIndex = 64;
numericUpDownFPS.TextAlign = HorizontalAlignment.Center; numericUpDownFPS.TextAlign = HorizontalAlignment.Center;
numericUpDownFPS.Value = new decimal(new int[] { 60, 0, 0, 0 }); numericUpDownFPS.Value = new decimal(new int[] { 60, 0, 0, 0 });
@@ -170,80 +167,81 @@
// sliderMinTDP // sliderMinTDP
// //
sliderMinTDP.AccessibleName = "DPI Slider"; sliderMinTDP.AccessibleName = "DPI Slider";
sliderMinTDP.Location = new Point(140, 93); sliderMinTDP.Location = new Point(200, 155);
sliderMinTDP.Margin = new Padding(2);
sliderMinTDP.Max = 200; sliderMinTDP.Max = 200;
sliderMinTDP.Min = 5; sliderMinTDP.Min = 5;
sliderMinTDP.Name = "sliderMinTDP"; sliderMinTDP.Name = "sliderMinTDP";
sliderMinTDP.Size = new Size(204, 20); sliderMinTDP.Size = new Size(291, 33);
sliderMinTDP.Step = 1; sliderMinTDP.Step = 1;
sliderMinTDP.TabIndex = 63; sliderMinTDP.TabIndex = 63;
sliderMinTDP.TabStop = false; sliderMinTDP.TabStop = false;
sliderMinTDP.Text = "sliderBattery"; sliderMinTDP.Text = "sliderBattery";
sliderMinTDP.Value = 0; sliderMinTDP.Value = 0;
// //
// label2 // labelMaxTDPText
// //
label2.Location = new Point(5, 117); labelMaxTDPText.Location = new Point(7, 195);
label2.Margin = new Padding(4, 0, 4, 0); labelMaxTDPText.Margin = new Padding(6, 0, 6, 0);
label2.Name = "label2"; labelMaxTDPText.Name = "labelMaxTDPText";
label2.Size = new Size(129, 22); labelMaxTDPText.Size = new Size(184, 37);
label2.TabIndex = 61; labelMaxTDPText.TabIndex = 61;
label2.Text = "Max TDP:"; labelMaxTDPText.Text = "Max TDP:";
label2.TextAlign = ContentAlignment.MiddleLeft; labelMaxTDPText.TextAlign = ContentAlignment.MiddleLeft;
// //
// label3 // labeMinTDPText
// //
label3.Location = new Point(5, 91); labeMinTDPText.Location = new Point(7, 152);
label3.Margin = new Padding(4, 0, 4, 0); labeMinTDPText.Margin = new Padding(6, 0, 6, 0);
label3.Name = "label3"; labeMinTDPText.Name = "labeMinTDPText";
label3.Size = new Size(129, 22); labeMinTDPText.Size = new Size(184, 37);
label3.TabIndex = 62; labeMinTDPText.TabIndex = 62;
label3.Text = "Min TDP:"; labeMinTDPText.Text = "Min TDP:";
label3.TextAlign = ContentAlignment.MiddleLeft; labeMinTDPText.TextAlign = ContentAlignment.MiddleLeft;
// //
// label1 // labelTargetFPS
// //
label1.Location = new Point(5, 63); labelTargetFPS.Location = new Point(7, 105);
label1.Margin = new Padding(4, 0, 4, 0); labelTargetFPS.Margin = new Padding(6, 0, 6, 0);
label1.Name = "label1"; labelTargetFPS.Name = "labelTargetFPS";
label1.Size = new Size(129, 22); labelTargetFPS.Size = new Size(184, 37);
label1.TabIndex = 60; labelTargetFPS.TabIndex = 60;
label1.Text = "Target FPS:"; labelTargetFPS.Text = "Target FPS:";
label1.TextAlign = ContentAlignment.MiddleLeft; labelTargetFPS.TextAlign = ContentAlignment.MiddleLeft;
// //
// textBoxTitle // textBoxTitle
// //
textBoxTitle.Location = new Point(140, 36); textBoxTitle.Location = new Point(200, 60);
textBoxTitle.Margin = new Padding(4, 5, 4, 5);
textBoxTitle.Name = "textBoxTitle"; textBoxTitle.Name = "textBoxTitle";
textBoxTitle.Size = new Size(237, 23); textBoxTitle.Size = new Size(337, 31);
textBoxTitle.TabIndex = 59; textBoxTitle.TabIndex = 59;
// //
// textBoxProcessName // textBoxProcessName
// //
textBoxProcessName.Location = new Point(140, 6); textBoxProcessName.Location = new Point(200, 10);
textBoxProcessName.Margin = new Padding(4, 5, 4, 5);
textBoxProcessName.Name = "textBoxProcessName"; textBoxProcessName.Name = "textBoxProcessName";
textBoxProcessName.ReadOnly = true; textBoxProcessName.ReadOnly = true;
textBoxProcessName.Size = new Size(237, 23); textBoxProcessName.Size = new Size(337, 31);
textBoxProcessName.TabIndex = 58; textBoxProcessName.TabIndex = 58;
textBoxProcessName.WordWrap = false; textBoxProcessName.WordWrap = false;
// //
// labelFPSSource // labelFPSSource
// //
labelFPSSource.Location = new Point(4, 37); labelFPSSource.Location = new Point(6, 62);
labelFPSSource.Margin = new Padding(4, 0, 4, 0); labelFPSSource.Margin = new Padding(6, 0, 6, 0);
labelFPSSource.Name = "labelFPSSource"; labelFPSSource.Name = "labelFPSSource";
labelFPSSource.Size = new Size(129, 22); labelFPSSource.Size = new Size(184, 37);
labelFPSSource.TabIndex = 57; labelFPSSource.TabIndex = 57;
labelFPSSource.Text = "Name:"; labelFPSSource.Text = "Name:";
labelFPSSource.TextAlign = ContentAlignment.MiddleLeft; labelFPSSource.TextAlign = ContentAlignment.MiddleLeft;
// //
// labelLimiter // labelLimiter
// //
labelLimiter.Location = new Point(4, 7); labelLimiter.Location = new Point(6, 12);
labelLimiter.Margin = new Padding(4, 0, 4, 0); labelLimiter.Margin = new Padding(6, 0, 6, 0);
labelLimiter.Name = "labelLimiter"; labelLimiter.Name = "labelLimiter";
labelLimiter.Size = new Size(129, 22); labelLimiter.Size = new Size(184, 37);
labelLimiter.TabIndex = 47; labelLimiter.TabIndex = 47;
labelLimiter.Text = "Process"; labelLimiter.Text = "Process";
labelLimiter.TextAlign = ContentAlignment.MiddleLeft; labelLimiter.TextAlign = ContentAlignment.MiddleLeft;
@@ -258,11 +256,11 @@
buttonSave.BorderRadius = 2; buttonSave.BorderRadius = 2;
buttonSave.FlatStyle = FlatStyle.Flat; buttonSave.FlatStyle = FlatStyle.Flat;
buttonSave.ForeColor = SystemColors.ControlText; buttonSave.ForeColor = SystemColors.ControlText;
buttonSave.Location = new Point(279, 182); buttonSave.Location = new Point(399, 303);
buttonSave.Margin = new Padding(2, 4, 2, 4); buttonSave.Margin = new Padding(3, 7, 3, 7);
buttonSave.Name = "buttonSave"; buttonSave.Name = "buttonSave";
buttonSave.Secondary = false; buttonSave.Secondary = false;
buttonSave.Size = new Size(103, 25); buttonSave.Size = new Size(147, 42);
buttonSave.TabIndex = 61; buttonSave.TabIndex = 61;
buttonSave.Text = "Save"; buttonSave.Text = "Save";
buttonSave.UseVisualStyleBackColor = false; buttonSave.UseVisualStyleBackColor = false;
@@ -277,25 +275,26 @@
buttonDelete.BorderRadius = 2; buttonDelete.BorderRadius = 2;
buttonDelete.FlatStyle = FlatStyle.Flat; buttonDelete.FlatStyle = FlatStyle.Flat;
buttonDelete.ForeColor = SystemColors.ControlText; buttonDelete.ForeColor = SystemColors.ControlText;
buttonDelete.Location = new Point(4, 182); buttonDelete.Location = new Point(6, 303);
buttonDelete.Margin = new Padding(2, 4, 2, 4); buttonDelete.Margin = new Padding(3, 7, 3, 7);
buttonDelete.Name = "buttonDelete"; buttonDelete.Name = "buttonDelete";
buttonDelete.Secondary = false; buttonDelete.Secondary = false;
buttonDelete.Size = new Size(103, 25); buttonDelete.Size = new Size(147, 42);
buttonDelete.TabIndex = 62; buttonDelete.TabIndex = 62;
buttonDelete.Text = "Delete"; buttonDelete.Text = "Delete";
buttonDelete.UseVisualStyleBackColor = false; buttonDelete.UseVisualStyleBackColor = false;
// //
// AutoTDPGameProfileUI // AutoTDPGameProfileUI
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(10F, 25F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(386, 217); ClientSize = new Size(551, 362);
Controls.Add(buttonDelete); Controls.Add(buttonDelete);
Controls.Add(buttonSave); Controls.Add(buttonSave);
Controls.Add(panelLightingContent); Controls.Add(panelGameSettings);
Controls.Add(panelPerformanceHeader); Controls.Add(panelPerformanceHeader);
FormBorderStyle = FormBorderStyle.FixedSingle; FormBorderStyle = FormBorderStyle.FixedSingle;
Margin = new Padding(4, 5, 4, 5);
MaximizeBox = false; MaximizeBox = false;
MinimizeBox = false; MinimizeBox = false;
Name = "AutoTDPGameProfileUI"; Name = "AutoTDPGameProfileUI";
@@ -305,8 +304,8 @@
panelPerformanceHeader.ResumeLayout(false); panelPerformanceHeader.ResumeLayout(false);
panelPerformanceHeader.PerformLayout(); panelPerformanceHeader.PerformLayout();
((System.ComponentModel.ISupportInitialize)pictureKeyboard).EndInit(); ((System.ComponentModel.ISupportInitialize)pictureKeyboard).EndInit();
panelLightingContent.ResumeLayout(false); panelGameSettings.ResumeLayout(false);
panelLightingContent.PerformLayout(); panelGameSettings.PerformLayout();
((System.ComponentModel.ISupportInitialize)numericUpDownFPS).EndInit(); ((System.ComponentModel.ISupportInitialize)numericUpDownFPS).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
@@ -318,15 +317,15 @@
private PictureBox pictureKeyboard; private PictureBox pictureKeyboard;
private Label labelSettings; private Label labelSettings;
private CheckBox checkBoxEnabled; private CheckBox checkBoxEnabled;
private Panel panelLightingContent; private Panel panelGameSettings;
private Label labelFPSSource; private Label labelFPSSource;
private Label labelLimiter; private Label labelLimiter;
private TextBox textBoxTitle; private TextBox textBoxTitle;
private TextBox textBoxProcessName; private TextBox textBoxProcessName;
private UI.RButton buttonSave; private UI.RButton buttonSave;
private Label label2; private Label labelMaxTDPText;
private Label label3; private Label labeMinTDPText;
private Label label1; private Label labelTargetFPS;
private UI.Slider sliderMinTDP; private UI.Slider sliderMinTDP;
private UI.Slider sliderMaxTDP; private UI.Slider sliderMaxTDP;
private NumericUpDown numericUpDownFPS; private NumericUpDown numericUpDownFPS;