Przeglądaj źródła

Remove MoonButton cause of high CPU usage

deadmoon 2 lat temu
rodzic
commit
ef20cec0e0

+ 0 - 63
Optimizer/Controls/MoonButton.cs

@@ -1,63 +0,0 @@
-using System;
-using System.Drawing;
-using System.Drawing.Drawing2D;
-using System.Windows.Forms;
-
-namespace Optimizer
-{
-    public sealed class MoonButton : Button
-    {
-        private int _borderRadius = 5;
-
-        public MoonButton()
-        {
-            BackColor = Color.White;
-            ForeColor = Color.Black;
-            FlatStyle = FlatStyle.Flat;
-            FlatAppearance.BorderSize = 0;
-        }
-
-        private GraphicsPath GetFigurePath(Rectangle rect, int radius)
-        {
-            GraphicsPath path = new GraphicsPath();
-            float curveSize = radius * 2F;
-
-            path.StartFigure();
-            path.AddArc(rect.X, rect.Y, curveSize, curveSize, 180, 90);
-            path.AddArc(rect.Right - curveSize, rect.Y, curveSize, curveSize, 270, 90);
-            path.AddArc(rect.Right - curveSize, rect.Bottom - curveSize, curveSize, curveSize, 0, 90);
-            path.AddArc(rect.X, rect.Bottom - curveSize, curveSize, curveSize, 90, 90);
-            path.CloseFigure();
-
-            return path;
-        }
-
-        protected override void OnPaint(PaintEventArgs pevent)
-        {
-            base.OnPaint(pevent);
-
-            pevent.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
-            pevent.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
-            pevent.Graphics.InterpolationMode = InterpolationMode.High;
-
-            Rectangle rectSurface = ClientRectangle;
-            Rectangle rectBorder = Rectangle.Inflate(rectSurface, 0, 0);
-
-            using (GraphicsPath pathSurface = GetFigurePath(rectSurface, _borderRadius))
-            using (GraphicsPath pathBorder = GetFigurePath(rectBorder, _borderRadius))
-            using (Pen penSurface = new Pen(Parent.BackColor, 2))
-            {
-                Region = new Region(pathSurface);
-                pevent.Graphics.DrawPath(penSurface, pathSurface);
-            }
-        }
-
-        protected override void OnResize(EventArgs e)
-        {
-            base.OnResize(e);
-
-            if (_borderRadius > Height)
-                _borderRadius = Height;
-        }
-    }
-}

+ 4 - 4
Optimizer/Forms/FileUnlockForm.Designer.cs

@@ -30,10 +30,10 @@
         {
             this.txtFile = new System.Windows.Forms.TextBox();
             this.radioFile = new System.Windows.Forms.Label();
-            this.btnFind = new MoonButton();
+            this.btnFind = new System.Windows.Forms.Button();
             this.panelModernAppsList = new System.Windows.Forms.Panel();
             this.listProcesses = new Optimizer.MoonCheckList();
-            this.btnKill = new MoonButton();
+            this.btnKill = new System.Windows.Forms.Button();
             this.panelModernAppsList.SuspendLayout();
             this.SuspendLayout();
             // 
@@ -158,9 +158,9 @@
 
         private System.Windows.Forms.TextBox txtFile;
         private System.Windows.Forms.Label radioFile;
-        private MoonButton btnFind;
+        private System.Windows.Forms.Button btnFind;
         private System.Windows.Forms.Panel panelModernAppsList;
         private MoonCheckList listProcesses;
-        private MoonButton btnKill;
+        private System.Windows.Forms.Button btnKill;
     }
 }

+ 2 - 2
Optimizer/Forms/FirstRunForm.Designer.cs

@@ -33,7 +33,7 @@ namespace Optimizer
             this.pictureBox88 = new System.Windows.Forms.PictureBox();
             this.pictureBox87 = new System.Windows.Forms.PictureBox();
             this.pictureBox86 = new System.Windows.Forms.PictureBox();
-            this.btnStart = new MoonButton();
+            this.btnStart = new System.Windows.Forms.Button();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
             this.pictureBox3 = new System.Windows.Forms.PictureBox();
@@ -732,7 +732,7 @@ namespace Optimizer
         private MoonRadio radioEnglish;
         private MoonRadio radioRussian;
         private System.Windows.Forms.PictureBox pictureBox86;
-        private MoonButton btnStart;
+        private System.Windows.Forms.Button btnStart;
         private System.Windows.Forms.PictureBox pictureBox1;
         private MoonRadio radioTurkish;
         private MoonRadio radioGerman;

+ 4 - 4
Optimizer/Forms/HelperForm.Designer.cs

@@ -29,8 +29,8 @@ namespace Optimizer
         private void InitializeComponent()
         {
             this.lblMessage = new System.Windows.Forms.Label();
-            this.btnYes = new MoonButton();
-            this.btnNo = new MoonButton();
+            this.btnYes = new System.Windows.Forms.Button();
+            this.btnNo = new System.Windows.Forms.Button();
             this.SuspendLayout();
             // 
             // lblMessage
@@ -112,7 +112,7 @@ namespace Optimizer
         #endregion
 
         private System.Windows.Forms.Label lblMessage;
-        private MoonButton btnYes;
-        private MoonButton btnNo;
+        private System.Windows.Forms.Button btnYes;
+        private System.Windows.Forms.Button btnNo;
     }
 }

+ 4 - 4
Optimizer/Forms/HostsEditorForm.Designer.cs

@@ -29,8 +29,8 @@
         private void InitializeComponent()
         {
             this.bpanel = new System.Windows.Forms.Panel();
-            this.closebtn = new MoonButton();
-            this.savebtn = new MoonButton();
+            this.closebtn = new System.Windows.Forms.Button();
+            this.savebtn = new System.Windows.Forms.Button();
             this.panel1 = new System.Windows.Forms.Panel();
             this.textBox1 = new System.Windows.Forms.RichTextBox();
             this.bpanel.SuspendLayout();
@@ -140,8 +140,8 @@
         #endregion
 
         private System.Windows.Forms.Panel bpanel;
-        private MoonButton closebtn;
-        private MoonButton savebtn;
+        private System.Windows.Forms.Button closebtn;
+        private System.Windows.Forms.Button savebtn;
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.RichTextBox textBox1;
     }

+ 4 - 4
Optimizer/Forms/InfoForm.Designer.cs

@@ -28,9 +28,9 @@
         /// </summary>
         private void InitializeComponent()
         {
-            this.btnOK = new MoonButton();
+            this.btnOK = new System.Windows.Forms.Button();
             this.txtInfo = new System.Windows.Forms.TextBox();
-            this.copyIPB = new MoonButton();
+            this.copyIPB = new System.Windows.Forms.Button();
             this.SuspendLayout();
             // 
             // btnOK
@@ -122,8 +122,8 @@
 
         #endregion
 
-        private MoonButton btnOK;
+        private System.Windows.Forms.Button btnOK;
         private System.Windows.Forms.TextBox txtInfo;
-        private MoonButton copyIPB;
+        private System.Windows.Forms.Button copyIPB;
     }
 }

+ 98 - 98
Optimizer/Forms/MainForm.Designer.cs

@@ -127,35 +127,35 @@ namespace Optimizer
             this.label21 = new System.Windows.Forms.Label();
             this.disableOneDriveSw = new Optimizer.ToggleCard();
             this.advancedTab = new System.Windows.Forms.TabPage();
-            this.btnRestartDisableDefender = new Optimizer.MoonButton();
-            this.btnRestart = new Optimizer.MoonButton();
-            this.btnRestartSafe = new Optimizer.MoonButton();
+            this.btnRestartDisableDefender = new System.Windows.Forms.Button();
+            this.btnRestart = new System.Windows.Forms.Button();
+            this.btnRestartSafe = new System.Windows.Forms.Button();
             this.loginVerboseSw = new Optimizer.ToggleCard();
             this.hpetSw = new Optimizer.ToggleCard();
             this.modernAppsTab = new System.Windows.Forms.TabPage();
-            this.btnRestoreUwp = new Optimizer.MoonButton();
+            this.btnRestoreUwp = new System.Windows.Forms.Button();
             this.panelUwp = new System.Windows.Forms.Panel();
-            this.uninstallModernAppsButton = new Optimizer.MoonButton();
-            this.refreshModernAppsButton = new Optimizer.MoonButton();
+            this.uninstallModernAppsButton = new System.Windows.Forms.Button();
+            this.refreshModernAppsButton = new System.Windows.Forms.Button();
             this.txtModernAppsTitle = new System.Windows.Forms.Label();
             this.chkOnlyRemovable = new Optimizer.MoonCheck();
             this.chkSelectAllModernApps = new Optimizer.MoonCheck();
             this.startupTab = new System.Windows.Forms.TabPage();
-            this.cancelBackup = new Optimizer.MoonButton();
-            this.doBackup = new Optimizer.MoonButton();
+            this.cancelBackup = new System.Windows.Forms.Button();
+            this.doBackup = new System.Windows.Forms.Button();
             this.txtBackupTitle = new System.Windows.Forms.TextBox();
             this.lblBackupTitle = new System.Windows.Forms.Label();
-            this.restoreStartupB = new Optimizer.MoonButton();
-            this.backupStartupB = new Optimizer.MoonButton();
-            this.findInRegB = new Optimizer.MoonButton();
-            this.locateFileB = new Optimizer.MoonButton();
-            this.refreshStartupB = new Optimizer.MoonButton();
+            this.restoreStartupB = new System.Windows.Forms.Button();
+            this.backupStartupB = new System.Windows.Forms.Button();
+            this.findInRegB = new System.Windows.Forms.Button();
+            this.locateFileB = new System.Windows.Forms.Button();
+            this.refreshStartupB = new System.Windows.Forms.Button();
             this.panel3 = new System.Windows.Forms.Panel();
             this.listStartupItems = new System.Windows.Forms.ListView();
             this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
             this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
             this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
-            this.removeStartupItemB = new Optimizer.MoonButton();
+            this.removeStartupItemB = new System.Windows.Forms.Button();
             this.startupTitle = new System.Windows.Forms.Label();
             this.appsTab = new System.Windows.Forms.TabPage();
             this.txtFeedError = new System.Windows.Forms.Label();
@@ -168,30 +168,30 @@ namespace Optimizer
             this.groupInternet = new System.Windows.Forms.Panel();
             this.panel10 = new System.Windows.Forms.Panel();
             this.appsTitle = new System.Windows.Forms.Label();
-            this.btnGetFeed = new Optimizer.MoonButton();
+            this.btnGetFeed = new System.Windows.Forms.Button();
             this.panelCommonApps = new System.Windows.Forms.Panel();
             this.cAutoInstall = new Optimizer.MoonCheck();
             this.progressDownloader = new Optimizer.MoonProgress();
             this.c64 = new Optimizer.MoonRadio();
             this.c32 = new Optimizer.MoonRadio();
-            this.btnDownloadApps = new Optimizer.MoonButton();
+            this.btnDownloadApps = new System.Windows.Forms.Button();
             this.setDownDirLbl = new System.Windows.Forms.Label();
             this.txtDownloadFolder = new System.Windows.Forms.TextBox();
-            this.changeDownDirB = new Optimizer.MoonButton();
+            this.changeDownDirB = new System.Windows.Forms.Button();
             this.txtDownloadStatus = new System.Windows.Forms.Label();
             this.linkWarnings = new System.Windows.Forms.LinkLabel();
             this.bitPref = new System.Windows.Forms.Label();
-            this.goToDownloadsB = new Optimizer.MoonButton();
+            this.goToDownloadsB = new System.Windows.Forms.Button();
             this.groupSystemTools = new System.Windows.Forms.Panel();
             this.cleanerTab = new System.Windows.Forms.TabPage();
             this.panel14 = new System.Windows.Forms.Panel();
             this.listCleanPreview = new Optimizer.MoonCheckList();
             this.panel13 = new System.Windows.Forms.Panel();
-            this.btnWinClean = new Optimizer.MoonButton();
-            this.analyzeDriveB = new Optimizer.MoonButton();
+            this.btnWinClean = new System.Windows.Forms.Button();
+            this.analyzeDriveB = new System.Windows.Forms.Button();
             this.checkSelectAll = new System.Windows.Forms.LinkLabel();
             this.lblPretext = new System.Windows.Forms.Label();
-            this.cleanDriveB = new Optimizer.MoonButton();
+            this.cleanDriveB = new System.Windows.Forms.Button();
             this.lblFootprint = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
             this.bravePasswords = new Optimizer.MoonCheck();
@@ -231,14 +231,14 @@ namespace Optimizer
             this.pingerTab = new System.Windows.Forms.TabPage();
             this.netTools = new MoonTabs();
             this.tabPage1 = new System.Windows.Forms.TabPage();
-            this.btnExport = new Optimizer.MoonButton();
-            this.copyB = new Optimizer.MoonButton();
-            this.copyIPB = new Optimizer.MoonButton();
+            this.btnExport = new System.Windows.Forms.Button();
+            this.copyB = new System.Windows.Forms.Button();
+            this.copyIPB = new System.Windows.Forms.Button();
             this.panel7 = new System.Windows.Forms.Panel();
             this.listPingResults = new Optimizer.MoonList();
             this.lblResults = new System.Windows.Forms.Label();
-            this.btnShodan = new Optimizer.MoonButton();
-            this.btnPing = new Optimizer.MoonButton();
+            this.btnShodan = new System.Windows.Forms.Button();
+            this.btnPing = new System.Windows.Forms.Button();
             this.txtPingInput = new System.Windows.Forms.TextBox();
             this.lblPinger = new System.Windows.Forms.Label();
             this.pingerTitle = new System.Windows.Forms.Label();
@@ -250,8 +250,8 @@ namespace Optimizer
             this.linkDNSv4 = new System.Windows.Forms.LinkLabel();
             this.label3 = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
-            this.btnOpenNetwork = new Optimizer.MoonButton();
-            this.flushCacheB = new Optimizer.MoonButton();
+            this.btnOpenNetwork = new System.Windows.Forms.Button();
+            this.flushCacheB = new System.Windows.Forms.Button();
             this.boxAdapter = new Optimizer.MoonComboBox();
             this.boxDNS = new Optimizer.MoonComboBox();
             this.hostsEditorTab = new System.Windows.Forms.TabPage();
@@ -263,10 +263,10 @@ namespace Optimizer
             this.panelList = new System.Windows.Forms.Panel();
             this.listHostEntries = new Optimizer.MoonList();
             this.chkBlock = new Optimizer.MoonCheck();
-            this.refreshHostsB = new Optimizer.MoonButton();
-            this.removeHostB = new Optimizer.MoonButton();
-            this.removeAllHostsB = new Optimizer.MoonButton();
-            this.addHostB = new Optimizer.MoonButton();
+            this.refreshHostsB = new System.Windows.Forms.Button();
+            this.removeHostB = new System.Windows.Forms.Button();
+            this.removeAllHostsB = new System.Windows.Forms.Button();
+            this.addHostB = new System.Windows.Forms.Button();
             this.txtIP = new System.Windows.Forms.TextBox();
             this.txtDomain = new System.Windows.Forms.TextBox();
             this.lblDomain = new System.Windows.Forms.Label();
@@ -275,7 +275,7 @@ namespace Optimizer
             this.linkLocate = new System.Windows.Forms.LinkLabel();
             this.registryFixerTab = new System.Windows.Forms.TabPage();
             this.panel2 = new System.Windows.Forms.Panel();
-            this.regFixB = new Optimizer.MoonButton();
+            this.regFixB = new System.Windows.Forms.Button();
             this.regLbl = new System.Windows.Forms.Label();
             this.checkRestartExplorer = new Optimizer.MoonCheck();
             this.checkRegistryEditor = new Optimizer.MoonCheck();
@@ -296,8 +296,8 @@ namespace Optimizer
             this.toolHWGoogle = new System.Windows.Forms.ToolStripMenuItem();
             this.toolHWDuck = new System.Windows.Forms.ToolStripMenuItem();
             this.panel11 = new System.Windows.Forms.Panel();
-            this.btnCopyHW = new Optimizer.MoonButton();
-            this.btnSaveHW = new Optimizer.MoonButton();
+            this.btnCopyHW = new System.Windows.Forms.Button();
+            this.btnSaveHW = new System.Windows.Forms.Button();
             this.hwDetailed = new Optimizer.ToggleCard();
             this.integratorTab = new System.Windows.Forms.TabPage();
             this.synapse = new MoonTabs();
@@ -310,7 +310,7 @@ namespace Optimizer
             this.integrator2 = new System.Windows.Forms.Label();
             this.integrator1 = new System.Windows.Forms.Label();
             this.tabPage8 = new System.Windows.Forms.TabPage();
-            this.btnAddItem = new Optimizer.MoonButton();
+            this.btnAddItem = new System.Windows.Forms.Button();
             this.itemnamegroup = new System.Windows.Forms.GroupBox();
             this.txtItemName = new System.Windows.Forms.TextBox();
             this.security = new System.Windows.Forms.GroupBox();
@@ -321,10 +321,10 @@ namespace Optimizer
             this.radioBottom = new Optimizer.MoonRadio();
             this.icontoaddgroup = new System.Windows.Forms.GroupBox();
             this.checkDefaultIcon = new Optimizer.MoonCheck();
-            this.btnBrowseIcon = new Optimizer.MoonButton();
+            this.btnBrowseIcon = new System.Windows.Forms.Button();
             this.txtIcon = new System.Windows.Forms.TextBox();
             this.itemtoaddgroup = new System.Windows.Forms.GroupBox();
-            this.btnBrowseItem = new Optimizer.MoonButton();
+            this.btnBrowseItem = new System.Windows.Forms.Button();
             this.txtItem = new System.Windows.Forms.TextBox();
             this.itemtype = new System.Windows.Forms.GroupBox();
             this.radioCommand = new Optimizer.MoonRadio();
@@ -336,9 +336,9 @@ namespace Optimizer
             this.tabPage9 = new System.Windows.Forms.TabPage();
             this.panel5 = new System.Windows.Forms.Panel();
             this.listDesktopItems = new Optimizer.MoonList();
-            this.refreshIIB = new Optimizer.MoonButton();
-            this.removeDIB = new Optimizer.MoonButton();
-            this.removeAllIIB = new Optimizer.MoonButton();
+            this.refreshIIB = new System.Windows.Forms.Button();
+            this.removeDIB = new System.Windows.Forms.Button();
+            this.removeAllIIB = new System.Windows.Forms.Button();
             this.removeIntegratorItemsL = new System.Windows.Forms.Label();
             this.tabPage10 = new System.Windows.Forms.TabPage();
             this.WAB = new Optimizer.ToggleCard();
@@ -352,11 +352,11 @@ namespace Optimizer
             this.tabPage11 = new System.Windows.Forms.TabPage();
             this.panel6 = new System.Windows.Forms.Panel();
             this.listCustomCommands = new Optimizer.MoonList();
-            this.removeCCB = new Optimizer.MoonButton();
-            this.refreshCCB = new Optimizer.MoonButton();
+            this.removeCCB = new System.Windows.Forms.Button();
+            this.refreshCCB = new System.Windows.Forms.Button();
             this.removeCCL = new System.Windows.Forms.Label();
-            this.btnCreateCustomCommand = new Optimizer.MoonButton();
-            this.button48 = new Optimizer.MoonButton();
+            this.btnCreateCustomCommand = new System.Windows.Forms.Button();
+            this.button48 = new System.Windows.Forms.Button();
             this.txtRunKeyword = new System.Windows.Forms.TextBox();
             this.ccKeywordL = new System.Windows.Forms.Label();
             this.txtRunFile = new System.Windows.Forms.TextBox();
@@ -379,13 +379,13 @@ namespace Optimizer
             this.picFlag = new System.Windows.Forms.PictureBox();
             this.languagesL = new System.Windows.Forms.Label();
             this.linkLabel5 = new System.Windows.Forms.LinkLabel();
-            this.btnOpenConf = new Optimizer.MoonButton();
+            this.btnOpenConf = new System.Windows.Forms.Button();
             this.lblTroubleshoot = new System.Windows.Forms.Label();
             this.lblUpdating = new System.Windows.Forms.Label();
-            this.btnViewLog = new Optimizer.MoonButton();
+            this.btnViewLog = new System.Windows.Forms.Button();
             this.l2 = new System.Windows.Forms.LinkLabel();
-            this.btnUpdate = new Optimizer.MoonButton();
-            this.btnResetConfig = new Optimizer.MoonButton();
+            this.btnUpdate = new System.Windows.Forms.Button();
+            this.btnResetConfig = new System.Windows.Forms.Button();
             this.lblTheming = new System.Windows.Forms.Label();
             this.quickAccessToggle = new Optimizer.ToggleCard();
             this.imagesHw = new System.Windows.Forms.ImageList(this.components);
@@ -6129,10 +6129,10 @@ namespace Optimizer
         private System.Windows.Forms.TabPage cleanerTab;
         private System.Windows.Forms.TabPage startupTab;
         private System.Windows.Forms.Label startupTitle;
-        private MoonButton removeStartupItemB;
+        private System.Windows.Forms.Button removeStartupItemB;
         private System.Windows.Forms.TabPage registryFixerTab;
         private System.Windows.Forms.Label registryTitle;
-        private MoonButton regFixB;
+        private System.Windows.Forms.Button regFixB;
         private System.Windows.Forms.Panel panel2;
         private MoonCheck checkRegistryEditor;
         private MoonCheck checkEnableAll;
@@ -6149,8 +6149,8 @@ namespace Optimizer
         private System.Windows.Forms.ListView listStartupItems;
         private System.Windows.Forms.ColumnHeader columnHeader1;
         private System.Windows.Forms.ColumnHeader columnHeader2;
-        private MoonButton refreshStartupB;
-        private MoonButton locateFileB;
+        private System.Windows.Forms.Button refreshStartupB;
+        private System.Windows.Forms.Button locateFileB;
         private System.Windows.Forms.ColumnHeader columnHeader3;
         private System.Windows.Forms.TabPage hostsEditorTab;
         private System.Windows.Forms.Label hostsTitle;
@@ -6159,13 +6159,13 @@ namespace Optimizer
         private System.Windows.Forms.LinkLabel linkRestoreDefault;
         private MoonList listHostEntries;
         private System.Windows.Forms.Panel panel4;
-        private MoonButton removeAllHostsB;
-        private MoonButton refreshHostsB;
-        private MoonButton removeHostB;
+        private System.Windows.Forms.Button removeAllHostsB;
+        private System.Windows.Forms.Button refreshHostsB;
+        private System.Windows.Forms.Button removeHostB;
         private System.Windows.Forms.TextBox txtDomain;
         private System.Windows.Forms.Label lblDomain;
         private System.Windows.Forms.Label lblIP;
-        private MoonButton addHostB;
+        private System.Windows.Forms.Button addHostB;
         private System.Windows.Forms.TextBox txtIP;
         private System.Windows.Forms.TabPage integratorTab;
         private MoonTabs synapse;
@@ -6181,20 +6181,20 @@ namespace Optimizer
         private System.Windows.Forms.Label integrator3;
         private System.Windows.Forms.Label integrator2;
         private System.Windows.Forms.Label integrator1;
-        private MoonButton button48;
+        private System.Windows.Forms.Button button48;
         private System.Windows.Forms.TextBox txtRunKeyword;
         private System.Windows.Forms.Label ccKeywordL;
         private System.Windows.Forms.TextBox txtRunFile;
         private System.Windows.Forms.Label ccFileL;
         private System.Windows.Forms.Label ccL;
-        private MoonButton btnCreateCustomCommand;
+        private System.Windows.Forms.Button btnCreateCustomCommand;
         internal System.Windows.Forms.OpenFileDialog defineCommandDialog;
         private System.Windows.Forms.Label readyMenusL;
         private MoonList listDesktopItems;
         private System.Windows.Forms.Label removeIntegratorItemsL;
-        private MoonButton refreshIIB;
-        private MoonButton removeDIB;
-        private MoonButton removeAllIIB;
+        private System.Windows.Forms.Button refreshIIB;
+        private System.Windows.Forms.Button removeDIB;
+        private System.Windows.Forms.Button removeAllIIB;
         private System.Windows.Forms.GroupBox itemtype;
         private MoonRadio radioCommand;
         private MoonRadio radioProgram;
@@ -6204,10 +6204,10 @@ namespace Optimizer
         private System.Windows.Forms.Label addItemL;
         private System.Windows.Forms.GroupBox icontoaddgroup;
         private MoonCheck checkDefaultIcon;
-        private MoonButton btnBrowseIcon;
+        private System.Windows.Forms.Button btnBrowseIcon;
         private System.Windows.Forms.TextBox txtIcon;
         private System.Windows.Forms.GroupBox itemtoaddgroup;
-        private MoonButton btnBrowseItem;
+        private System.Windows.Forms.Button btnBrowseItem;
         private System.Windows.Forms.TextBox txtItem;
         private System.Windows.Forms.GroupBox security;
         private MoonCheck checkShift;
@@ -6217,7 +6217,7 @@ namespace Optimizer
         private MoonRadio radioBottom;
         private System.Windows.Forms.GroupBox itemnamegroup;
         private System.Windows.Forms.TextBox txtItemName;
-        private MoonButton btnAddItem;
+        private System.Windows.Forms.Button btnAddItem;
         internal System.Windows.Forms.OpenFileDialog defineProgramDialog;
         internal System.Windows.Forms.FolderBrowserDialog defineFolderDialog;
         internal System.Windows.Forms.OpenFileDialog defineFileDialog;
@@ -6226,48 +6226,48 @@ namespace Optimizer
         internal System.Windows.Forms.OpenFileDialog DefineURLIconDialog;
         internal System.Windows.Forms.OpenFileDialog DefineFileIconDialog;
         internal System.Windows.Forms.OpenFileDialog DefineCommandIconDialog;
-        private MoonButton findInRegB;
+        private System.Windows.Forms.Button findInRegB;
         private System.Windows.Forms.TabPage optionsTab;
         private System.Windows.Forms.Label lblTheming;
         private MoonList listCustomCommands;
         private System.Windows.Forms.Label removeCCL;
-        private MoonButton removeCCB;
-        private MoonButton refreshCCB;
+        private System.Windows.Forms.Button removeCCB;
+        private System.Windows.Forms.Button refreshCCB;
         private System.Windows.Forms.Panel panel5;
         private System.Windows.Forms.Panel panel6;
         private System.Windows.Forms.Panel panelList;
         private System.Windows.Forms.TabPage modernAppsTab;
         private System.Windows.Forms.Label txtModernAppsTitle;
-        private MoonButton uninstallModernAppsButton;
-        private MoonButton refreshModernAppsButton;
+        private System.Windows.Forms.Button uninstallModernAppsButton;
+        private System.Windows.Forms.Button refreshModernAppsButton;
         private MoonCheck chkSelectAllModernApps;
-        private MoonButton btnResetConfig;
-        private MoonButton btnUpdate;
+        private System.Windows.Forms.Button btnResetConfig;
+        private System.Windows.Forms.Button btnUpdate;
         private MoonCheck chkReadOnly;
         private System.Windows.Forms.Label lblLock;
         private MoonCheck chkBlock;
         private System.Windows.Forms.TabPage appsTab;
-        private MoonButton btnDownloadApps;
+        private System.Windows.Forms.Button btnDownloadApps;
         private System.Windows.Forms.Label appsTitle;
         private System.Windows.Forms.Label setDownDirLbl;
         private System.Windows.Forms.TextBox txtDownloadFolder;
-        private MoonButton changeDownDirB;
+        private System.Windows.Forms.Button changeDownDirB;
         private System.Windows.Forms.Label txtDownloadStatus;
         private System.Windows.Forms.Label bitPref;
         private MoonRadio c32;
-        private MoonButton goToDownloadsB;
+        private System.Windows.Forms.Button goToDownloadsB;
         private System.Windows.Forms.LinkLabel linkWarnings;
         private MoonCheck cAutoInstall;
         private MoonCheck chkOnlyRemovable;
         private MoonProgress progressDownloader;
-        private MoonButton btnGetFeed;
+        private System.Windows.Forms.Button btnGetFeed;
         private System.Windows.Forms.Panel panelCommonApps;
         private System.Windows.Forms.LinkLabel l2;
         private System.Windows.Forms.Panel groupSystemTools;
-        private MoonButton btnViewLog;
+        private System.Windows.Forms.Button btnViewLog;
         private System.Windows.Forms.Label lblTroubleshoot;
         private System.Windows.Forms.Label lblUpdating;
-        private MoonButton btnOpenConf;
+        private System.Windows.Forms.Button btnOpenConf;
         private System.Windows.Forms.TabPage pingerTab;
         internal System.Windows.Forms.SaveFileDialog ExportDialog;
         private System.Windows.Forms.ContextMenuStrip launcherMenu;
@@ -6469,26 +6469,26 @@ namespace Optimizer
         private ToggleCard edgeTelemetrySw;
         private ToggleCard loginVerboseSw;
         private ToggleCard hpetSw;
-        private MoonButton backupStartupB;
-        private MoonButton restoreStartupB;
-        private MoonButton doBackup;
-        private MoonButton cancelBackup;
-        private MoonButton btnCopyHW;
-        private MoonButton btnSaveHW;
-        private MoonButton cleanDriveB;
-        private MoonButton analyzeDriveB;
-        private MoonButton btnWinClean;
-        private MoonButton btnExport;
-        private MoonButton copyB;
-        private MoonButton copyIPB;
-        private MoonButton btnShodan;
-        private MoonButton btnPing;
-        private MoonButton btnOpenNetwork;
-        private MoonButton flushCacheB;
-        private MoonButton btnRestoreUwp;
-        private MoonButton btnRestartDisableDefender;
-        private MoonButton btnRestart;
-        private MoonButton btnRestartSafe;
+        private System.Windows.Forms.Button backupStartupB;
+        private System.Windows.Forms.Button restoreStartupB;
+        private System.Windows.Forms.Button doBackup;
+        private System.Windows.Forms.Button cancelBackup;
+        private System.Windows.Forms.Button btnCopyHW;
+        private System.Windows.Forms.Button btnSaveHW;
+        private System.Windows.Forms.Button cleanDriveB;
+        private System.Windows.Forms.Button analyzeDriveB;
+        private System.Windows.Forms.Button btnWinClean;
+        private System.Windows.Forms.Button btnExport;
+        private System.Windows.Forms.Button copyB;
+        private System.Windows.Forms.Button copyIPB;
+        private System.Windows.Forms.Button btnShodan;
+        private System.Windows.Forms.Button btnPing;
+        private System.Windows.Forms.Button btnOpenNetwork;
+        private System.Windows.Forms.Button flushCacheB;
+        private System.Windows.Forms.Button btnRestoreUwp;
+        private System.Windows.Forms.Button btnRestartDisableDefender;
+        private System.Windows.Forms.Button btnRestart;
+        private System.Windows.Forms.Button btnRestartSafe;
     }
 }
 

+ 6 - 6
Optimizer/Forms/StartupRestoreForm.Designer.cs

@@ -32,9 +32,9 @@
             this.listRestoreItems = new Optimizer.MoonList();
             this.panel1 = new System.Windows.Forms.Panel();
             this.txtNoBackups = new System.Windows.Forms.Label();
-            this.previewBackupB = new MoonButton();
-            this.restoreBackupB = new MoonButton();
-            this.deleteBackupB = new MoonButton();
+            this.previewBackupB = new System.Windows.Forms.Button();
+            this.restoreBackupB = new System.Windows.Forms.Button();
+            this.deleteBackupB = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             this.SuspendLayout();
             // 
@@ -183,9 +183,9 @@
         private System.Windows.Forms.Label backupL;
         private MoonList listRestoreItems;
         private System.Windows.Forms.Panel panel1;
-        private MoonButton previewBackupB;
-        private MoonButton restoreBackupB;
-        private MoonButton deleteBackupB;
+        private System.Windows.Forms.Button previewBackupB;
+        private System.Windows.Forms.Button restoreBackupB;
+        private System.Windows.Forms.Button deleteBackupB;
         private System.Windows.Forms.Label txtNoBackups;
     }
 }

+ 2 - 2
Optimizer/Forms/SubForm.Designer.cs

@@ -30,7 +30,7 @@
         {
             this.txtInfo = new System.Windows.Forms.RichTextBox();
             this.panel1 = new System.Windows.Forms.Panel();
-            this.btnStart = new MoonButton();
+            this.btnStart = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             this.SuspendLayout();
             // 
@@ -117,6 +117,6 @@
 
         private System.Windows.Forms.RichTextBox txtInfo;
         private System.Windows.Forms.Panel panel1;
-        private MoonButton btnStart;
+        private System.Windows.Forms.Button btnStart;
     }
 }

+ 4 - 4
Optimizer/Forms/UpdateForm.Designer.cs

@@ -30,8 +30,8 @@ namespace Optimizer
         private void InitializeComponent()
         {
             this.txtMessage = new System.Windows.Forms.Label();
-            this.btnOK = new MoonButton();
-            this.btnNo = new MoonButton();
+            this.btnOK = new System.Windows.Forms.Button();
+            this.btnNo = new System.Windows.Forms.Button();
             this.txtVersions = new System.Windows.Forms.Label();
             this.txtChanges = new System.Windows.Forms.Label();
             this.txtInfo = new System.Windows.Forms.TextBox();
@@ -164,8 +164,8 @@ namespace Optimizer
         #endregion
 
         private System.Windows.Forms.Label txtMessage;
-        private MoonButton btnOK;
-        private MoonButton btnNo;
+        private System.Windows.Forms.Button btnOK;
+        private System.Windows.Forms.Button btnNo;
         private System.Windows.Forms.Label txtVersions;
         private System.Windows.Forms.Label txtChanges;
         private System.Windows.Forms.TextBox txtInfo;

+ 0 - 3
Optimizer/Optimizer.csproj

@@ -90,9 +90,6 @@
     <Compile Include="Controls\ColorPicker.cs">
       <SubType>Component</SubType>
     </Compile>
-    <Compile Include="Controls\MoonButton.cs">
-      <SubType>Component</SubType>
-    </Compile>
     <Compile Include="Controls\MoonComboBox.cs">
       <SubType>Component</SubType>
     </Compile>