Explorar o código

Added info tip to each switch

deadmoon %!s(int64=4) %!d(string=hai) anos
pai
achega
e055a79dee
Modificáronse 6 ficheiros con 4268 adicións e 43325 borrados
  1. 510 334
      Optimizer/MainForm.Designer.cs
  2. 26 1
      Optimizer/MainForm.cs
  3. 3701 42982
      Optimizer/MainForm.resx
  4. 21 0
      Optimizer/Optimize.cs
  5. 3 0
      Optimizer/Optimizer.csproj
  6. 7 8
      README.md

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 510 - 334
Optimizer/MainForm.Designer.cs


+ 26 - 1
Optimizer/MainForm.cs

@@ -3,6 +3,8 @@ using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.ComponentModel;
 using System.Diagnostics;
 using System.Diagnostics;
+using System.Drawing;
+using System.Drawing.Drawing2D;
 using System.IO;
 using System.IO;
 using System.Linq;
 using System.Linq;
 using System.Net;
 using System.Net;
@@ -47,6 +49,16 @@ namespace Optimizer
 
 
         readonly string _blockedIP = "0.0.0.0";
         readonly string _blockedIP = "0.0.0.0";
 
 
+        string infoText = string.Empty;
+        string[] toRemove =
+        {
+            "Enable ",
+            "Disable ",
+            "Remove ",
+            "Uninstall ",
+            "Exclude ",
+        };
+
         readonly string _restartMessage = "Restart to apply changes?";
         readonly string _restartMessage = "Restart to apply changes?";
         readonly string _removeStartupItemsMessage = "Are you sure you want to delete all startup items?";
         readonly string _removeStartupItemsMessage = "Are you sure you want to delete all startup items?";
         readonly string _removeHostsEntriesMessage = "Are you sure you want to delete all hosts entries?";
         readonly string _removeHostsEntriesMessage = "Are you sure you want to delete all hosts entries?";
@@ -334,6 +346,7 @@ namespace Optimizer
             }
             }
         }
         }
 
 
+        //INIT
         public MainForm()
         public MainForm()
         {
         {
             InitializeComponent();
             InitializeComponent();
@@ -646,7 +659,7 @@ namespace Optimizer
 
 
         private void Main_Load(object sender, EventArgs e)
         private void Main_Load(object sender, EventArgs e)
         {
         {
-
+            
         }
         }
 
 
         private void GetDesktopItems()
         private void GetDesktopItems()
@@ -2532,5 +2545,17 @@ namespace Optimizer
         {
         {
             Utilities.FlushDNSCache();
             Utilities.FlushDNSCache();
         }
         }
+
+        private void infoBaloon_Popup(object sender, PopupEventArgs e)
+        {
+            infoText = ((ToggleSwitch)e.AssociatedControl).OnText;
+
+            foreach (string x in toRemove)
+            {
+                infoText = infoText.Replace(x, string.Empty);
+            }
+
+            infoBaloon.ToolTipTitle = "What is " + infoText + "?";
+        }
     }
     }
 }
 }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3701 - 42982
Optimizer/MainForm.resx


+ 21 - 0
Optimizer/Optimize.cs

@@ -1040,6 +1040,17 @@ namespace Optimizer
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "ReservationsAllowed", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "ReservationsAllowed", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore", "DisableOSUpgrade", "1", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore", "DisableOSUpgrade", "1", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\Setup\UpgradeNotification", "UpgradeAvailable", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\Setup\UpgradeNotification", "UpgradeAvailable", "0", RegistryValueKind.DWord);
+
+            try
+            {
+                string buildNumber = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId", string.Empty);
+                if (!string.IsNullOrEmpty(buildNumber)) Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "TargetReleaseVersionInfo", buildNumber, RegistryValueKind.String);
+                Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", "TargetReleaseVersion", "1", RegistryValueKind.DWord);
+            }
+            catch (Exception ex)
+            {
+                ErrorLogger.LogError("Optimize.DisableForcedFeatureUpdates", ex.Message, ex.StackTrace);
+            }
         }
         }
 
 
         internal static void EnableForcedFeatureUpdates()
         internal static void EnableForcedFeatureUpdates()
@@ -1049,6 +1060,16 @@ namespace Optimizer
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "ReservationsAllowed", "1", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade", "ReservationsAllowed", "1", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore", "DisableOSUpgrade", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore", "DisableOSUpgrade", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\Setup\UpgradeNotification", "UpgradeAvailable", "1", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\Setup\UpgradeNotification", "UpgradeAvailable", "1", RegistryValueKind.DWord);
+
+            try
+            {
+                Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", true).DeleteValue("TargetReleaseVersionInfo", false);
+                Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate", true).DeleteValue("TargetReleaseVersion", false);
+            }
+            catch (Exception ex)
+            {
+                ErrorLogger.LogError("Optimize.EnableForcedFeatureUpdates", ex.Message, ex.StackTrace);
+            }
         }
         }
 
 
         internal static void DisableSmartScreen()
         internal static void DisableSmartScreen()

+ 3 - 0
Optimizer/Optimizer.csproj

@@ -56,6 +56,9 @@
   <PropertyGroup>
   <PropertyGroup>
     <ApplicationIcon>optimizer.ico</ApplicationIcon>
     <ApplicationIcon>optimizer.ico</ApplicationIcon>
   </PropertyGroup>
   </PropertyGroup>
+  <PropertyGroup>
+    <SignAssembly>false</SignAssembly>
+  </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="Microsoft.VisualBasic" />
     <Reference Include="Microsoft.VisualBasic" />
     <Reference Include="Newtonsoft.Json">
     <Reference Include="Newtonsoft.Json">

+ 7 - 8
README.md

@@ -1,6 +1,6 @@
 ## Summary: ##
 ## Summary: ##
 
 
-Portable utility that helps you to restore your privacy and increase your security.
+Portable utility that helps you restore your privacy and increase your security.
 
 
 Optimizer is recommended after a fresh, clean installation of Windows to achieve maximum privacy and security.
 Optimizer is recommended after a fresh, clean installation of Windows to achieve maximum privacy and security.
 
 
@@ -11,22 +11,21 @@ Depending on your version of Windows, Optimizer will also allow you to perform s
 * Speed up your system and network performance
 * Speed up your system and network performance
 * Disable unnecessary Windows services
 * Disable unnecessary Windows services
 * Disable Windows telemetry
 * Disable Windows telemetry
-* Disable Office telemetry (works only with 2016)
+* Disable Office telemetry (works only with Office 2016)
 * Disable Cortana
 * Disable Cortana
 * Disable Windows 10 automatic updates
 * Disable Windows 10 automatic updates
 * Download useful apps quickly at once
 * Download useful apps quickly at once
 * Uninstall UWP apps
 * Uninstall UWP apps
-* Clean up your system drive
+* Clean your system drive
 * Fix common registry issues
 * Fix common registry issues
-* Quickly ping IPs and assess your latency
+* Ping IPs and assess your latency
 * Search IPs on SHODAN.io
 * Search IPs on SHODAN.io
 * Flush DNS cache
 * Flush DNS cache
 * Remove unwanted programs running at startup
 * Remove unwanted programs running at startup
-* Change Microsoft Edge download folder
-* Edit your hosts file
-* Add items in desktop right-click menu
+* Edit your HOSTS file
+* Add items in desktop on right-click menu
 * Define custom commands for run dialog
 * Define custom commands for run dialog
-* Supports silent run using configuration file
+* Silent run support using a configuration file
 
 
 ## Downloads: ##
 ## Downloads: ##
 https://github.com/hellzerg/optimizer/releases
 https://github.com/hellzerg/optimizer/releases

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio