From dde554eebfc67b4599b683b24579fbc81b910150 Mon Sep 17 00:00:00 2001 From: seerge Date: Sat, 18 Mar 2023 18:39:51 +0100 Subject: [PATCH] Cleanup --- app/Fans.cs | 7 +------ app/GHelper.csproj | 21 +++++++++++++++++++++ app/RoundedButton.cs | 6 ++---- app/Settings.Designer.cs | 4 ++-- app/Settings.cs | 2 +- app/post-build.bat | 3 +++ 6 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 app/post-build.bat diff --git a/app/Fans.cs b/app/Fans.cs index bf53c1ee..1f24ef5f 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -1,9 +1,4 @@ -using System; -using System.Diagnostics; -using System.Diagnostics.Metrics; -using System.Drawing.Imaging; -using System.Drawing.Text; -using System.IO; +using System.Diagnostics; using System.Windows.Forms.DataVisualization.Charting; namespace GHelper diff --git a/app/GHelper.csproj b/app/GHelper.csproj index a03a05ae..8e477a8f 100644 --- a/app/GHelper.csproj +++ b/app/GHelper.csproj @@ -17,6 +17,23 @@ False True 0.31 + OnBuildSuccess + + + + none + + + + none + + + + none + + + + none @@ -108,4 +125,8 @@ + + + + \ No newline at end of file diff --git a/app/RoundedButton.cs b/app/RoundedButton.cs index 6c1b50d4..64546ac5 100644 --- a/app/RoundedButton.cs +++ b/app/RoundedButton.cs @@ -1,6 +1,4 @@ -using System.ComponentModel; -using System.Drawing; -using System.Drawing.Drawing2D; +using System.Drawing.Drawing2D; namespace CustomControls { @@ -68,7 +66,7 @@ namespace CustomControls Color borderDrawColor = activated ? borderColor : Color.Transparent; - using (GraphicsPath pathSurface = GetFigurePath(rectSurface, borderRadius+ border)) + using (GraphicsPath pathSurface = GetFigurePath(rectSurface, borderRadius + border)) using (GraphicsPath pathBorder = GetFigurePath(rectBorder, borderRadius)) using (Pen penSurface = new Pen(this.Parent.BackColor, border)) using (Pen penBorder = new Pen(borderDrawColor, border)) diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index 81296c24..2e6c3744 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -907,7 +907,7 @@ namespace GHelper AutoScaleMode = AutoScaleMode.Dpi; AutoSize = true; AutoSizeMode = AutoSizeMode.GrowAndShrink; - ClientSize = new Size(830, 1173); + ClientSize = new Size(800, 1173); Controls.Add(panelFooter); Controls.Add(panelBattery); Controls.Add(panelMatrix); @@ -919,7 +919,7 @@ namespace GHelper MaximizeBox = false; MdiChildrenMinimizedAnchorBottom = false; MinimizeBox = false; - MinimumSize = new Size(830, 71); + MinimumSize = new Size(800, 71); Name = "SettingsForm"; Padding = new Padding(10); ShowIcon = false; diff --git a/app/Settings.cs b/app/Settings.cs index bfba92bb..0bdae1d2 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1000,11 +1000,11 @@ namespace GHelper tablePerf.ColumnCount = 0; tableGPU.ColumnCount = 0; + tableScreen.ColumnCount = 0; } tableLayoutKeyboard.ColumnCount = 0; - tableScreen.ColumnCount = 0; tableLayoutMatrix.ColumnCount = 0; diff --git a/app/post-build.bat b/app/post-build.bat new file mode 100644 index 00000000..d7f763ff --- /dev/null +++ b/app/post-build.bat @@ -0,0 +1,3 @@ +cd bin\Release\net7.0-windows8.0\publish\ +del GHelper.zip +rem "C:\Program Files\7-Zip\7z.exe" a GHelper.zip GHelper.exe \ No newline at end of file