// silent config processing for universal tweaks internal static void ProcessSilentConfigGeneral() { if (CurrentSilentConfig.EnablePerformanceTweaks.HasValue) { if (CurrentSilentConfig.EnablePerformanceTweaks.Value) { Optimize.EnablePerformanceTweaks(); } else { Optimize.DisablePerformanceTweaks(); } } if (CurrentSilentConfig.DisableNetworkThrottling.HasValue) { if (CurrentSilentConfig.DisableNetworkThrottling.Value) { Optimize.DisableNetworkThrottling(); } else { Optimize.EnableNetworkThrottling(); } } if (CurrentSilentConfig.DisableWindowsDefender.HasValue) { if (CurrentSilentConfig.DisableWindowsDefender.Value) { Optimize.DisableDefender(); } else { Optimize.EnableDefender(); } } if (CurrentSilentConfig.DisableSystemRestore.HasValue) { if (CurrentSilentConfig.DisableSystemRestore.Value) { Optimize.DisableSystemRestore(); } else { Optimize.EnableSystemRestore(); } } if (CurrentSilentConfig.DisablePrintService.HasValue) { if (CurrentSilentConfig.DisablePrintService.Value) { Optimize.DisablePrintService(); } else { Optimize.EnablePrintService(); } } if (CurrentSilentConfig.DisableMediaPlayerSharing.HasValue) { if (CurrentSilentConfig.DisableMediaPlayerSharing.Value) { Optimize.DisableMediaPlayerSharing(); } else { Optimize.EnableMediaPlayerSharing(); } } if (CurrentSilentConfig.DisableErrorReporting.HasValue) { if (CurrentSilentConfig.DisableErrorReporting.Value) { Optimize.DisableErrorReporting(); } else { Optimize.EnableErrorReporting(); } } if (CurrentSilentConfig.DisableHomeGroup.HasValue) { if (CurrentSilentConfig.DisableHomeGroup.Value) { Optimize.DisableHomeGroup(); } else { Optimize.EnableHomeGroup(); } } if (CurrentSilentConfig.DisableSuperfetch.HasValue) { if (CurrentSilentConfig.DisableSuperfetch.Value) { Optimize.DisableSuperfetch(); } else { Optimize.EnableSuperfetch(); } } if (CurrentSilentConfig.DisableTelemetryTasks.HasValue) { if (CurrentSilentConfig.DisableTelemetryTasks.Value) { Optimize.DisableTelemetryTasks(); } else { Optimize.EnableTelemetryTasks(); } } if (CurrentSilentConfig.DisableOffice2016Telemetry.HasValue) { if (CurrentSilentConfig.DisableOffice2016Telemetry.Value) { Optimize.DisableOffice2016Telemetry(); } else { Optimize.EnableOffice2016Telemetry(); } } if (CurrentSilentConfig.DisableCompatibilityAssistant.HasValue) { if (CurrentSilentConfig.DisableCompatibilityAssistant.Value) { Optimize.DisableCompatibilityAssistant(); } else { Optimize.EnableCompatibilityAssistant(); } } if (CurrentSilentConfig.DisableFaxService.HasValue) { if (CurrentSilentConfig.DisableFaxService.Value) { Optimize.DisableFaxService(); } else { Optimize.EnableFaxService(); } } if (CurrentSilentConfig.DisableSmartScreen.HasValue) { if (CurrentSilentConfig.DisableSmartScreen.Value) { Optimize.DisableSmartScreen(); } else { Optimize.EnableSmartScreen(); } } if (CurrentSilentConfig.DisableStickyKeys.HasValue) { if (CurrentSilentConfig.DisableStickyKeys.Value) { Optimize.DisableStickyKeys(); } else { Optimize.EnableStickyKeys(); } } }
private void ApplyAll() { if (MainForm.wv != WindowsVersion.Unsupported) { try { // universal Optimize.PerformanceTweaks(); Optimize.DisableNetworkThrottling(); Optimize.DisableDefender(); Optimize.DisableSystemRestore(); if (DisablePrintServices) { Optimize.DisablePrintSpooler(); } else { Optimize.EnablePrintSpooler(); } Optimize.DisableMediaPlayerSharing(); Optimize.BlockSkypeAds(); Optimize.DisableErrorReporting(); Optimize.DisableHomeGroup(); Optimize.DisableSuperfetch(); Optimize.DisableTelemetryTasks(); Optimize.DisableOfficeTelemetryTasks(); // Windows-specific if ((MainForm.wv == WindowsVersion.Windows7) || (MainForm.wv == WindowsVersion.WindowsServer2008)) { Optimize.RemoveWindows10Icon(); } if ((MainForm.wv == WindowsVersion.Windows8) || (MainForm.wv == WindowsVersion.WindowsServer2012)) { Optimize.RemoveWindows10Icon(); Optimize.DisableOneDrive(); } if ((MainForm.wv == WindowsVersion.Windows10) || (MainForm.wv == WindowsVersion.WindowsServer2016)) { Optimize.RestoreLegacyVolumeSlider(); Optimize.DisableCortana(); Optimize.DisableXboxLive(); Optimize.DisableAutomaticUpdates(); Optimize.DisableDiagnosticsTracking(); Optimize.DisableWAPPush(); Optimize.DisableDataTelemetry(); if (DisableSensorServices) { Optimize.DisableSensorServices(); } else { Optimize.EnableSensorServices(); } Optimize.UninstallOneDrive(); Optimize.DisablePrivacyOptions(); Optimize.DisableGameBar(); Optimize.DisableSyncProviderNotifications(); Optimize.DisableStartMenuAds(); Optimize.DisableSilentAppInstall(); Optimize.DisableMyPeople(); Optimize.ExcludeDrivers(); Optimize.DisableWindowsInk(); Optimize.DisableSpellingAndTypingFeatures(); } } catch //(Exception error) { //MessageBox.Show(error.Message); } finally { this.Close(); } } this.Close(); }
private void button34_Click(object sender, EventArgs e) { Optimize.DisableMediaPlayerSharing(); button34.Enabled = false; }
// silent config processing for universal tweaks internal static void ProcessSilentConfigGeneral() { if (CurrentSilentConfig.EnablePerformanceTweaks) { Optimize.EnablePerformanceTweaks(); } else { Optimize.DisablePerformanceTweaks(); } if (CurrentSilentConfig.DisableNetworkThrottling) { Optimize.DisableNetworkThrottling(); } else { Optimize.EnableNetworkThrottling(); } if (CurrentSilentConfig.DisableWindowsDefender) { Optimize.DisableDefender(); } else { Optimize.EnableDefender(); } if (CurrentSilentConfig.DisableSystemRestore) { Optimize.DisableSystemRestore(); } else { Optimize.EnableSystemRestore(); } if (CurrentSilentConfig.DisablePrintService) { Optimize.DisablePrintService(); } else { Optimize.EnablePrintService(); } if (CurrentSilentConfig.DisableMediaPlayerSharing) { Optimize.DisableMediaPlayerSharing(); } else { Optimize.EnableMediaPlayerSharing(); } if (CurrentSilentConfig.BlockSkypeAds) { Optimize.DisableSkypeAds(); } else { Optimize.EnableSkypeAds(); } if (CurrentSilentConfig.DisableErrorReporting) { Optimize.DisableErrorReporting(); } else { Optimize.EnableErrorReporting(); } if (CurrentSilentConfig.DisableHomeGroup) { Optimize.DisableHomeGroup(); } else { Optimize.EnableHomeGroup(); } if (CurrentSilentConfig.DisableSuperfetch) { Optimize.DisableSuperfetch(); } else { Optimize.EnableSuperfetch(); } if (CurrentSilentConfig.DisableTelemetryTasks) { Optimize.DisableTelemetryTasks(); } else { Optimize.EnableTelemetryTasks(); } if (CurrentSilentConfig.DisableOffice2016Telemetry) { Optimize.DisableOffice2016Telemetry(); } else { Optimize.EnableOffice2016Telemetry(); } if (CurrentSilentConfig.DisableCompatibilityAssistant) { Optimize.DisableCompatibilityAssistant(); } else { Optimize.EnableCompatibilityAssistant(); } if (CurrentSilentConfig.DisableFaxService) { Optimize.DisableFaxService(); } else { Optimize.EnableFaxService(); } if (CurrentSilentConfig.DisableSmartScreen) { Optimize.DisableSmartScreen(); } else { Optimize.EnableSmartScreen(); } if (CurrentSilentConfig.DisableStickyKeys) { Optimize.DisableStickyKeys(); } else { Optimize.EnableStickyKeys(); } }