Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

ref: cleanup code

itsfatduck0f24b6928ce8
diff --git a/optimizerDuck.Test/Services/OptimizationServices/ShellServiceTests.cs b/optimizerDuck.Test/Services/OptimizationServices/ShellServiceTests.cs
index 0843990..68376e5 100644
--- a/optimizerDuck.Test/Services/OptimizationServices/ShellServiceTests.cs
+++ b/optimizerDuck.Test/Services/OptimizationServices/ShellServiceTests.cs
@@ -1,6 +1,4 @@
-using System.Text;
using optimizerDuck.Services.OptimizationServices;
-using Xunit;
namespace optimizerDuck.Test.Services.OptimizationServices;
diff --git a/optimizerDuck.Test/optimizerDuck.Test.csproj b/optimizerDuck.Test/optimizerDuck.Test.csproj
index 4336ca4..1d21695 100644
--- a/optimizerDuck.Test/optimizerDuck.Test.csproj
+++ b/optimizerDuck.Test/optimizerDuck.Test.csproj
@@ -13,7 +13,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.3"/>
- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.4"/>
<PackageReference Include="xunit" Version="2.9.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
diff --git a/optimizerDuck/Core/Interfaces/IRevertStep.cs b/optimizerDuck/Core/Interfaces/IRevertStep.cs
index 25d1930..1d584dc 100644
--- a/optimizerDuck/Core/Interfaces/IRevertStep.cs
+++ b/optimizerDuck/Core/Interfaces/IRevertStep.cs
@@ -21,6 +21,6 @@ public interface IRevertStep
/// <summary>
/// Serializes this revert step to a JSON object for persistence.
/// </summary>
- /// <returns>A <see cref="JObject"/> containing the serialized step data.</returns>
+ /// <returns>A <see cref="JObject" /> containing the serialized step data.</returns>
JObject ToData();
}
\ No newline at end of file
diff --git a/optimizerDuck/Core/Models/Attributes/OptimizationCategoryAttribute.cs b/optimizerDuck/Core/Models/Attributes/OptimizationCategoryAttribute.cs
index e766455..efd539d 100644
--- a/optimizerDuck/Core/Models/Attributes/OptimizationCategoryAttribute.cs
+++ b/optimizerDuck/Core/Models/Attributes/OptimizationCategoryAttribute.cs
@@ -4,7 +4,7 @@ namespace optimizerDuck.Core.Models.Attributes;
/// Associates an optimization category with its corresponding UI page type
/// for automatic page registration.
/// </summary>
-/// <param name="pageType">The <see cref="Type"/> of the XAML page for this category.</param>
+/// <param name="pageType">The <see cref="Type" /> of the XAML page for this category.</param>
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class OptimizationCategoryAttribute(Type pageType) : Attribute
{
diff --git a/optimizerDuck/Core/Models/Bloatware/AppXPackage.cs b/optimizerDuck/Core/Models/Bloatware/AppXPackage.cs
index 09db097..002501e 100644
--- a/optimizerDuck/Core/Models/Bloatware/AppXPackage.cs
+++ b/optimizerDuck/Core/Models/Bloatware/AppXPackage.cs
@@ -29,26 +29,32 @@ public partial class AppXPackage : ObservableObject
/// Path to the package's logo image.
/// </summary>
public string? LogoImage { get; set; }
+
/// <summary>
/// Display name of the app.
/// </summary>
public required string Name { get; init; }
+
/// <summary>
/// The full package name.
/// </summary>
public required string PackageFullName { get; init; }
+
/// <summary>
/// The publisher of the app.
/// </summary>
public required string Publisher { get; init; }
+
/// <summary>
/// The version of the app.
/// </summary>
public required string Version { get; init; }
+
/// <summary>
/// The installation location of the app.
/// </summary>
public required string InstallLocation { get; init; }
+
/// <summary>
/// The risk level of removing this app.
/// </summary>
diff --git a/optimizerDuck/Core/Models/Cleanup/CleanupItem.cs b/optimizerDuck/Core/Models/Cleanup/CleanupItem.cs
index 8c58044..8a842e7 100644
--- a/optimizerDuck/Core/Models/Cleanup/CleanupItem.cs
+++ b/optimizerDuck/Core/Models/Cleanup/CleanupItem.cs
@@ -12,18 +12,22 @@ public partial class CleanupItem : ObservableObject
/// The number of files in this cleanup item.
/// </summary>
[ObservableProperty] private long _fileCount;
+
/// <summary>
/// Indicates whether cleanup is in progress.
/// </summary>
[ObservableProperty] private bool _isCleaning;
+
/// <summary>
/// Indicates whether this item has been scanned.
/// </summary>
[ObservableProperty] private bool _isScanned;
+
/// <summary>
/// Indicates whether scanning is in progress.
/// </summary>
[ObservableProperty] private bool _isScanning;
+
/// <summary>
/// Indicates whether this item is selected for cleanup.
/// </summary>
@@ -33,22 +37,27 @@ public partial class CleanupItem : ObservableObject
/// The size of files in bytes.
/// </summary>
[ObservableProperty] private long _sizeBytes;
+
/// <summary>
/// Unique identifier for this cleanup item.
/// </summary>
public required string Id { get; init; }
+
/// <summary>
/// Display name of the cleanup item.
/// </summary>
public required string Name { get; init; }
+
/// <summary>
/// Description of what this cleanup item contains.
/// </summary>
public required string Description { get; init; }
+
/// <summary>
/// The file path or folder to clean.
/// </summary>
public required string Path { get; init; }
+
/// <summary>
/// The icon to display in the UI.
/// </summary>
diff --git a/optimizerDuck/Core/Models/Config/AppSettings.cs b/optimizerDuck/Core/Models/Config/AppSettings.cs
index df56fe1..a720467 100644
--- a/optimizerDuck/Core/Models/Config/AppSettings.cs
+++ b/optimizerDuck/Core/Models/Config/AppSettings.cs
@@ -9,10 +9,12 @@ public sealed class AppSettings
/// General application settings.
/// </summary>
public AppOptions App { get; set; } = new();
+
/// <summary>
/// Optimization-related settings.
/// </summary>
public OptimizeOptions Optimize { get; set; } = new();
+
/// <summary>
/// Bloatware removal settings.
/// </summary>
@@ -27,6 +29,7 @@ public sealed class AppSettings
/// The UI language code (e.g., "en-US").
/// </summary>
public string Language { get; set; } = "en-US";
+
/// <summary>
/// The UI theme (e.g., "Dark").
/// </summary>
diff --git a/optimizerDuck/Core/Models/Optimization/ApplyResult.cs b/optimizerDuck/Core/Models/Optimization/ApplyResult.cs
index de07dba..a9a04f3 100644
--- a/optimizerDuck/Core/Models/Optimization/ApplyResult.cs
+++ b/optimizerDuck/Core/Models/Optimization/ApplyResult.cs
@@ -13,7 +13,7 @@ public readonly record struct ApplyResult
/// <summary>
/// Creates a successful result.
/// </summary>
- /// <returns>An <see cref="ApplyResult"/> with no error message.</returns>
+ /// <returns>An <see cref="ApplyResult" /> with no error message.</returns>
public static ApplyResult True()
{
return new ApplyResult { Message = null };
@@ -23,7 +23,7 @@ public readonly record struct ApplyResult
/// Creates a failed result with an error message.
/// </summary>
/// <param name="message">The error message describing the failure.</param>
- /// <returns>An <see cref="ApplyResult"/> containing the error message.</returns>
+ /// <returns>An <see cref="ApplyResult" /> containing the error message.</returns>
public static ApplyResult False(string message)
{
return new ApplyResult { Message = message };
diff --git a/optimizerDuck/Core/Models/Optimization/OperationStepResult.cs b/optimizerDuck/Core/Models/Optimization/OperationStepResult.cs
index d90f38b..8954ff8 100644
--- a/optimizerDuck/Core/Models/Optimization/OperationStepResult.cs
+++ b/optimizerDuck/Core/Models/Optimization/OperationStepResult.cs
@@ -9,22 +9,27 @@ public record OperationStepResult
/// The zero-based index of this step in the execution order.
/// </summary>
public int Index { get; init; }
+
/// <summary>
/// The name of the step.
/// </summary>
public string Name { get; init; } = string.Empty;
+
/// <summary>
/// A description of what this step does.
/// </summary>
public string Description { get; init; } = string.Empty;
+
/// <summary>
/// Indicates whether the step completed successfully.
/// </summary>
public bool Success { get; init; }
+
/// <summary>
/// The error message if the step failed.
/// </summary>
public string? Error { get; init; }
+
/// <summary>
/// An optional action to retry this step.
/// </summary>
diff --git a/optimizerDuck/Core/Models/Optimization/OptimizationResult.cs b/optimizerDuck/Core/Models/Optimization/OptimizationResult.cs
index f8414f3..4bd6b38 100644
--- a/optimizerDuck/Core/Models/Optimization/OptimizationResult.cs
+++ b/optimizerDuck/Core/Models/Optimization/OptimizationResult.cs
@@ -11,14 +11,17 @@ public record OptimizationResult
/// The status of the operation (Success, PartialSuccess, or Failed).
/// </summary>
public OptimizationSuccessResult Status { get; init; }
+
/// <summary>
/// A message describing the result.
/// </summary>
public string Message { get; init; } = string.Empty;
+
/// <summary>
/// The exception that occurred, if any.
/// </summary>
public Exception? Exception { get; init; }
+
/// <summary>
/// List of steps that failed during the operation.
/// </summary>
diff --git a/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs b/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs
index 5c0a88b..5d921a8 100644
--- a/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs
+++ b/optimizerDuck/Core/Models/Optimization/Services/RegistryItem.cs
@@ -28,7 +28,7 @@ public record struct RegistryItem
public readonly object? Value;
/// <summary>
- /// Initializes a new <see cref="RegistryItem"/> with all fields specified.
+ /// Initializes a new <see cref="RegistryItem" /> with all fields specified.
/// </summary>
/// <param name="path">The registry key path.</param>
/// <param name="name">The value name.</param>
@@ -43,7 +43,7 @@ public record struct RegistryItem
}
/// <summary>
- /// Initializes a new <see cref="RegistryItem"/> with automatic kind detection.
+ /// Initializes a new <see cref="RegistryItem" /> with automatic kind detection.
/// </summary>
/// <param name="path">The registry key path.</param>
/// <param name="name">The value name.</param>
@@ -57,7 +57,7 @@ public record struct RegistryItem
}
/// <summary>
- /// Initializes a new <see cref="RegistryItem"/> for a named value without data (used for deletion).
+ /// Initializes a new <see cref="RegistryItem" /> for a named value without data (used for deletion).
/// </summary>
/// <param name="path">The registry key path.</param>
/// <param name="name">The value name to target.</param>
@@ -70,7 +70,8 @@ public record struct RegistryItem
}
/// <summary>
- /// Initializes a new <see cref="RegistryItem"/> for a key path without a specific value (used for key-level operations).
+ /// Initializes a new <see cref="RegistryItem" /> for a key path without a specific value (used for key-level
+ /// operations).
/// </summary>
/// <param name="path">The registry key path.</param>
public RegistryItem(string path)
@@ -82,7 +83,7 @@ public record struct RegistryItem
}
/// <summary>
- /// Auto-detects the <see cref="RegistryValueKind"/> based on the CLR type of the value.
+ /// Auto-detects the <see cref="RegistryValueKind" /> based on the CLR type of the value.
/// </summary>
private static RegistryValueKind AutoDetectKind(object? value)
{
diff --git a/optimizerDuck/Core/Models/Optimization/Services/ServiceItem.cs b/optimizerDuck/Core/Models/Optimization/Services/ServiceItem.cs
index 20093fd..a173fbf 100644
--- a/optimizerDuck/Core/Models/Optimization/Services/ServiceItem.cs
+++ b/optimizerDuck/Core/Models/Optimization/Services/ServiceItem.cs
@@ -8,17 +8,7 @@ namespace optimizerDuck.Core.Models.Optimization.Services;
public readonly record struct ServiceItem
{
/// <summary>
- /// The Windows service name (e.g., <c>"DiagTrack"</c>).
- /// </summary>
- public required string Name { get; init; }
-
- /// <summary>
- /// The desired startup type for the service.
- /// </summary>
- public required ServiceStartupType StartupType { get; init; }
-
- /// <summary>
- /// Initializes a new <see cref="ServiceItem"/> with the given service name and startup type.
+ /// Initializes a new <see cref="ServiceItem" /> with the given service name and startup type.
/// </summary>
/// <param name="name">The Windows service name.</param>
/// <param name="startupType">The desired startup type.</param>
@@ -28,4 +18,14 @@ public readonly record struct ServiceItem
Name = name;
StartupType = startupType;
}
+
+ /// <summary>
+ /// The Windows service name (e.g., <c>"DiagTrack"</c>).
+ /// </summary>
+ public required string Name { get; init; }
+
+ /// <summary>
+ /// The desired startup type for the service.
+ /// </summary>
+ public required ServiceStartupType StartupType { get; init; }
}
\ No newline at end of file
diff --git a/optimizerDuck/Core/Models/Revert/RevertContext.cs b/optimizerDuck/Core/Models/Revert/RevertContext.cs
index a6e8a61..bbfcfa2 100644
--- a/optimizerDuck/Core/Models/Revert/RevertContext.cs
+++ b/optimizerDuck/Core/Models/Revert/RevertContext.cs
@@ -6,7 +6,7 @@ namespace optimizerDuck.Core.Models.Revert;
/// <summary>
/// Manages the recording of revert steps during an optimization apply operation.
-/// Implements <see cref="IAsyncDisposable"/> to automatically persist recorded steps on disposal.
+/// Implements <see cref="IAsyncDisposable" /> to automatically persist recorded steps on disposal.
/// </summary>
public sealed class RevertContext : IAsyncDisposable
{
@@ -16,7 +16,7 @@ public sealed class RevertContext : IAsyncDisposable
private readonly Stack<IRevertStep> _steps = new();
/// <summary>
- /// Initializes a new <see cref="RevertContext"/> for the given optimization.
+ /// Initializes a new <see cref="RevertContext" /> for the given optimization.
/// </summary>
/// <param name="optimization">The optimization being performed.</param>
/// <param name="logger">The logger for diagnostic messages.</param>
diff --git a/optimizerDuck/Core/Models/Revert/RevertData.cs b/optimizerDuck/Core/Models/Revert/RevertData.cs
index 5f59a98..4f72d06 100644
--- a/optimizerDuck/Core/Models/Revert/RevertData.cs
+++ b/optimizerDuck/Core/Models/Revert/RevertData.cs
@@ -11,6 +11,7 @@ public class RevertStepData
/// The type of the revert step (e.g., "Registry", "Service", "Shell").
/// </summary>
public string Type { get; set; } = string.Empty;
+
/// <summary>
/// The serialized data for the step.
/// </summary>
@@ -26,14 +27,17 @@ public class RevertData
/// The unique identifier of the optimization.
/// </summary>
public Guid OptimizationId { get; set; }
+
/// <summary>
/// The name of the optimization.
/// </summary>
public string OptimizationName { get; set; } = string.Empty;
+
/// <summary>
/// When the optimization was applied.
/// </summary>
public DateTime AppliedAt { get; set; }
+
/// <summary>
/// The list of revert steps.
/// </summary>
diff --git a/optimizerDuck/Core/Models/Revert/RevertResult.cs b/optimizerDuck/Core/Models/Revert/RevertResult.cs
index 51551ac..d9e6a74 100644
--- a/optimizerDuck/Core/Models/Revert/RevertResult.cs
+++ b/optimizerDuck/Core/Models/Revert/RevertResult.cs
@@ -11,10 +11,12 @@ public class RevertResult
/// Indicates whether the revert was successful.
/// </summary>
public bool Success { get; set; }
+
/// <summary>
/// A message describing the result.
/// </summary>
public string Message { get; set; } = string.Empty;
+
/// <summary>
/// The exception that occurred, if any.
/// </summary>
diff --git a/optimizerDuck/Core/Models/Revert/RevertValidationResult.cs b/optimizerDuck/Core/Models/Revert/RevertValidationResult.cs
index 064ff8c..ff79150 100644
--- a/optimizerDuck/Core/Models/Revert/RevertValidationResult.cs
+++ b/optimizerDuck/Core/Models/Revert/RevertValidationResult.cs
@@ -32,7 +32,7 @@ public class RevertValidationResult
/// <summary>
/// Creates a successful validation result.
/// </summary>
- /// <returns>A valid <see cref="RevertValidationResult"/>.</returns>
+ /// <returns>A valid <see cref="RevertValidationResult" />.</returns>
public static RevertValidationResult Success()
{
return new RevertValidationResult(true, "Revert data is valid.", Translations.Revert_Error_InvalidData);
@@ -43,7 +43,7 @@ public class RevertValidationResult
/// </summary>
/// <param name="localizedMessage">The localized error message for the user.</param>
/// <param name="message">The technical error message.</param>
- /// <returns>An invalid <see cref="RevertValidationResult"/>.</returns>
+ /// <returns>An invalid <see cref="RevertValidationResult" />.</returns>
public static RevertValidationResult Fail(string localizedMessage, string message)
{
return new RevertValidationResult(false, message, localizedMessage);
diff --git a/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs b/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs
index 5602c7d..41d0b5b 100644
--- a/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs
+++ b/optimizerDuck/Core/Models/Revert/Steps/RegistryRevertStep.cs
@@ -73,7 +73,6 @@ public class RegistryRevertStep : IRevertStep
}
-
/// <inheritdoc />
public JObject ToData()
{
@@ -129,10 +128,10 @@ public class RegistryRevertStep : IRevertStep
}
/// <summary>
- /// Deserializes a <see cref="RegistryRevertStep"/> from JSON data.
+ /// Deserializes a <see cref="RegistryRevertStep" /> from JSON data.
/// </summary>
/// <param name="data">The JSON data to deserialize.</param>
- /// <returns>A new <see cref="RegistryRevertStep"/> instance.</returns>
+ /// <returns>A new <see cref="RegistryRevertStep" /> instance.</returns>
public static RegistryRevertStep FromData(JObject data)
{
var kind = Enum.Parse<RegistryValueKind>(data[nameof(Kind)]!.ToString());
diff --git a/optimizerDuck/Core/Models/Revert/Steps/ServiceRevertStep.cs b/optimizerDuck/Core/Models/Revert/Steps/ServiceRevertStep.cs
index 8d62ed0..78a53bb 100644
--- a/optimizerDuck/Core/Models/Revert/Steps/ServiceRevertStep.cs
+++ b/optimizerDuck/Core/Models/Revert/Steps/ServiceRevertStep.cs
@@ -47,10 +47,10 @@ public class ServiceRevertStep : IRevertStep
/// <summary>
- /// Deserializes a <see cref="ServiceRevertStep"/> from JSON data.
+ /// Deserializes a <see cref="ServiceRevertStep" /> from JSON data.
/// </summary>
/// <param name="data">The JSON data to deserialize.</param>
- /// <returns>A new <see cref="ServiceRevertStep"/> instance.</returns>
+ /// <returns>A new <see cref="ServiceRevertStep" /> instance.</returns>
public static ServiceRevertStep FromData(JObject data)
{
return new ServiceRevertStep
diff --git a/optimizerDuck/Core/Models/Revert/Steps/ShellRevertStep.cs b/optimizerDuck/Core/Models/Revert/Steps/ShellRevertStep.cs
index 4388242..dbcfdc3 100644
--- a/optimizerDuck/Core/Models/Revert/Steps/ShellRevertStep.cs
+++ b/optimizerDuck/Core/Models/Revert/Steps/ShellRevertStep.cs
@@ -32,7 +32,11 @@ public class ShellRevertStep : IRevertStep
{
ShellType.PowerShell => ShellService.PowerShell(Command),
ShellType.CMD => ShellService.CMD(Command),
- _ => new ShellResult {Command = Command, Stdout = "", Stderr = "Unknown shell type", ExitCode = 1, Duration = TimeSpan.Zero}
+ _ => new ShellResult
+ {
+ Command = Command, Stdout = "", Stderr = "Unknown shell type", ExitCode = 1,
+ Duration = TimeSpan.Zero
+ }
};
return result.ExitCode == 0;
});
@@ -49,10 +53,10 @@ public class ShellRevertStep : IRevertStep
}
/// <summary>
- /// Deserializes a <see cref="ShellRevertStep"/> from JSON data.
+ /// Deserializes a <see cref="ShellRevertStep" /> from JSON data.
/// </summary>
/// <param name="data">The JSON data to deserialize.</param>
- /// <returns>A new <see cref="ShellRevertStep"/> instance.</returns>
+ /// <returns>A new <see cref="ShellRevertStep" /> instance.</returns>
public static ShellRevertStep FromData(JToken data)
{
return new ShellRevertStep
diff --git a/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs b/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs
index 733579d..80cb93d 100644
--- a/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs
+++ b/optimizerDuck/Core/Models/ScheduledTask/ScheduledTaskModel.cs
@@ -13,31 +13,37 @@ public partial class ScheduledTaskModel : ObservableObject
/// Indicates whether the task is enabled.
/// </summary>
[ObservableProperty] private bool _isEnabled;
- /// <summary>
- /// The current state of the task (e.g., "Ready", "Running", "Disabled").
- /// </summary>
- [ObservableProperty] private string _state = string.Empty;
+
/// <summary>
/// The logo image of the task's executable.
/// </summary>
[ObservableProperty] private ImageSource? _logoImage;
+ /// <summary>
+ /// The current state of the task (e.g., "Ready", "Running", "Disabled").
+ /// </summary>
+ [ObservableProperty] private string _state = string.Empty;
+
/// <summary>
/// The name of the task.
/// </summary>
public required string Name { get; init; }
+
/// <summary>
/// The folder path of the task.
/// </summary>
public required string Path { get; init; }
+
/// <summary>
/// The full path to the task.
/// </summary>
public required string FullPath { get; init; }
+
/// <summary>
/// Description of the task.
/// </summary>
public string? Description { get; init; }
+
/// <summary>
/// The author of the task.
/// </summary>
@@ -47,6 +53,7 @@ public partial class ScheduledTaskModel : ObservableObject
/// Summary of when the task triggers.
/// </summary>
public string TriggerSummary { get; init; } = string.Empty;
+
/// <summary>
/// Summary of the task's action.
/// </summary>
@@ -61,10 +68,12 @@ public partial class ScheduledTaskModel : ObservableObject
/// The last time the task ran.
/// </summary>
public DateTime? LastRunTime { get; init; }
+
/// <summary>
/// The next scheduled run time.
/// </summary>
public DateTime? NextRunTime { get; init; }
+
/// <summary>
/// The result code of the last run.
/// </summary>
@@ -74,10 +83,12 @@ public partial class ScheduledTaskModel : ObservableObject
/// Indicates whether this is a Microsoft system task.
/// </summary>
public bool IsMicrosoftTask => Path.StartsWith(@"\Microsoft\", StringComparison.OrdinalIgnoreCase);
+
/// <summary>
/// Indicates whether the task has a logon trigger.
/// </summary>
public bool HasLogonTrigger { get; init; }
+
/// <summary>
/// Indicates whether the task has a boot trigger.
/// </summary>
@@ -88,30 +99,37 @@ public partial class ScheduledTaskModel : ObservableObject
/// The executable path for the task's action.
/// </summary>
public string ExecutablePath { get; init; } = string.Empty;
+
/// <summary>
/// Arguments passed to the executable.
/// </summary>
public string Arguments { get; init; } = string.Empty;
+
/// <summary>
/// Indicates whether the task has an idle trigger.
/// </summary>
public bool HasIdleTrigger { get; init; }
+
/// <summary>
/// Indicates whether the task has a registration trigger.
/// </summary>
public bool HasRegistrationTrigger { get; init; }
+
/// <summary>
/// Indicates whether the task has a daily trigger.
/// </summary>
public bool HasDailyTrigger { get; init; }
+
/// <summary>
/// The time of day for daily triggers.
/// </summary>
public TimeSpan DailyTriggerTime { get; init; }
+
/// <summary>
/// Indicates whether the task runs with the highest privileges.
/// </summary>
public bool RunWithHighestPrivileges { get; init; }
+
/// <summary>
/// Indicates whether the task is hidden.
/// </summary>
@@ -122,10 +140,12 @@ public partial class ScheduledTaskModel : ObservableObject
/// Indicates whether the task is currently running.
/// </summary>
public bool IsRunning => State.Equals("Running", StringComparison.OrdinalIgnoreCase);
+
/// <summary>
/// Indicates whether the task is ready to run.
/// </summary>
public bool IsReady => State.Equals("Ready", StringComparison.OrdinalIgnoreCase);
+
/// <summary>
/// Indicates whether the task is in a disabled state.
/// </summary>
@@ -140,4 +160,4 @@ public partial class ScheduledTaskModel : ObservableObject
OnPropertyChanged(nameof(IsReady));
OnPropertyChanged(nameof(IsDisabledState));
}
-}
+}
\ No newline at end of file
diff --git a/optimizerDuck/Core/Models/StartupManager/StartupApp.cs b/optimizerDuck/Core/Models/StartupManager/StartupApp.cs
index f1bbfcc..483e890 100644
--- a/optimizerDuck/Core/Models/StartupManager/StartupApp.cs
+++ b/optimizerDuck/Core/Models/StartupManager/StartupApp.cs
@@ -22,6 +22,13 @@ public enum StartupAppLocation
/// </summary>
public partial class StartupApp : ObservableObject
{
+ /// <summary>
+ /// The command that runs the application.
+ /// </summary>
+ [ObservableProperty] private string _command = string.Empty;
+
+ private string? _filePath;
+
/// <summary>
/// Indicates whether this startup entry is enabled.
/// </summary>
@@ -31,32 +38,32 @@ public partial class StartupApp : ObservableObject
/// The logo image of the application.
/// </summary>
[ObservableProperty] private ImageSource? _logoImage;
+
/// <summary>
- /// The display name of the startup application.
+ /// The original value name (registry) or file name (folder).
/// </summary>
- public required string Name { get; init; }
+ [ObservableProperty] private string _originalValueNameOrFileName = string.Empty;
+
/// <summary>
/// The publisher or company name.
/// </summary>
[ObservableProperty] private string _publisher = string.Empty;
+
/// <summary>
- /// The command that runs the application.
+ /// The display name of the startup application.
/// </summary>
- [ObservableProperty] private string _command = string.Empty;
+ public required string Name { get; init; }
+
/// <summary>
/// Where this startup entry is located.
/// </summary>
public required StartupAppLocation Location { get; init; }
+
/// <summary>
/// The registry key path or folder path.
/// </summary>
public required string PathOrKey { get; init; }
- /// <summary>
- /// The original value name (registry) or file name (folder).
- /// </summary>
- [ObservableProperty] private string _originalValueNameOrFileName = string.Empty;
-
- private string? _filePath;
+
/// <summary>
/// The actual file path of the executable.
/// </summary>
@@ -65,10 +72,7 @@ public partial class StartupApp : ObservableObject
get => _filePath;
set
{
- if (SetProperty(ref _filePath, value))
- {
- OnPropertyChanged(nameof(CanOpenLocation));
- }
+ if (SetProperty(ref _filePath, value)) OnPropertyChanged(nameof(CanOpenLocation));
}
}
diff --git a/optimizerDuck/Core/Models/StartupManager/StartupTask.cs b/optimizerDuck/Core/Models/StartupManager/StartupTask.cs
index e6afedc..32c20c2 100644
--- a/optimizerDuck/Core/Models/StartupManager/StartupTask.cs
+++ b/optimizerDuck/Core/Models/StartupManager/StartupTask.cs
@@ -12,6 +12,7 @@ public partial class StartupTask : ObservableObject
/// Indicates whether the task is enabled.
/// </summary>
[ObservableProperty] private bool _isEnabled;
+
/// <summary>
/// The logo image of the task's executable.
/// </summary>
@@ -21,22 +22,27 @@ public partial class StartupTask : ObservableObject
/// The name of the scheduled task.
/// </summary>
public required string TaskName { get; init; }
+
/// <summary>
/// The path to the task in Task Scheduler.
/// </summary>
public required string TaskPath { get; init; }
+
/// <summary>
/// Description of the task.
/// </summary>
public string? Description { get; init; }
+
/// <summary>
/// Summary of when the task triggers.
/// </summary>
public string? TriggerSummary { get; init; }
+
/// <summary>
/// The types of triggers (e.g., "At logon", "At startup").
/// </summary>
public List<string> TriggerTypes { get; init; } = [];
+
/// <summary>
/// Summary of what the task does.
/// </summary>
diff --git a/optimizerDuck/Core/Models/UI/LanguageOption.cs b/optimizerDuck/Core/Models/UI/LanguageOption.cs
index f8775c1..90e2064 100644
--- a/optimizerDuck/Core/Models/UI/LanguageOption.cs
+++ b/optimizerDuck/Core/Models/UI/LanguageOption.cs
@@ -13,7 +13,7 @@ public record LanguageOption
public required string DisplayName { get; init; }
/// <summary>
- /// The <see cref="CultureInfo"/> associated with this language option.
+ /// The <see cref="CultureInfo" /> associated with this language option.
/// </summary>
public required CultureInfo Culture { get; init; }
}
\ No newline at end of file
diff --git a/optimizerDuck/Core/Models/UI/OptimizationState.cs b/optimizerDuck/Core/Models/UI/OptimizationState.cs
index 84424ca..6735662 100644
--- a/optimizerDuck/Core/Models/UI/OptimizationState.cs
+++ b/optimizerDuck/Core/Models/UI/OptimizationState.cs
@@ -12,7 +12,7 @@ namespace optimizerDuck.Core.Models.UI;
public partial class OptimizationState : ObservableObject
{
private static readonly DispatcherTimer _globalTimer;
- private static readonly System.Collections.Generic.List<WeakReference<OptimizationState>> _instances = [];
+ private static readonly List<WeakReference<OptimizationState>> _instances = [];
private int _lastDisplayedSeconds = -1;
@@ -47,29 +47,23 @@ public partial class OptimizationState : ObservableObject
_globalTimer.Start();
}
- private static void UpdateAllRelativeTimes()
+ public OptimizationState()
{
lock (_instances)
{
- for (var i = _instances.Count - 1; i >= 0; i--)
- {
- if (_instances[i].TryGetTarget(out var instance))
- {
- instance.UpdateRelativeTime();
- }
- else
- {
- _instances.RemoveAt(i);
- }
- }
+ _instances.Add(new WeakReference<OptimizationState>(this));
}
}
- public OptimizationState()
+ private static void UpdateAllRelativeTimes()
{
lock (_instances)
{
- _instances.Add(new WeakReference<OptimizationState>(this));
+ for (var i = _instances.Count - 1; i >= 0; i--)
+ if (_instances[i].TryGetTarget(out var instance))
+ instance.UpdateRelativeTime();
+ else
+ _instances.RemoveAt(i);
}
}
diff --git a/optimizerDuck/Core/Models/UI/OptimizationTags.cs b/optimizerDuck/Core/Models/UI/OptimizationTags.cs
index 52e4e86..9906183 100644
--- a/optimizerDuck/Core/Models/UI/OptimizationTags.cs
+++ b/optimizerDuck/Core/Models/UI/OptimizationTags.cs
@@ -1,4 +1,3 @@
-using System.Diagnostics.CodeAnalysis;
using optimizerDuck.Resources.Languages;
using Wpf.Ui.Controls;
@@ -44,7 +43,7 @@ public enum OptimizationTags
}
/// <summary>
-/// Provides extension methods to convert <see cref="OptimizationTags"/> to display-friendly representations.
+/// Provides extension methods to convert <see cref="OptimizationTags" /> to display-friendly representations.
/// </summary>
public static class OptimizationTagsToDisplay
{
@@ -53,7 +52,7 @@ public static class OptimizationTagsToDisplay
/// <summary>
/// Converts the tag flags into a sequence of display-friendly representations.
/// </summary>
- /// <returns>An enumerable of <see cref="OptimizationTagDisplay"/> for each set flag.</returns>
+ /// <returns>An enumerable of <see cref="OptimizationTagDisplay" /> for each set flag.</returns>
public IEnumerable<OptimizationTagDisplay> ToDisplays()
{
foreach (var flag in Enum.GetValues<OptimizationTags>())
diff --git a/optimizerDuck/Core/Models/UI/ProcessingProgress.cs b/optimizerDuck/Core/Models/UI/ProcessingProgress.cs
index c4ad3be..e7e702d 100644
--- a/optimizerDuck/Core/Models/UI/ProcessingProgress.cs
+++ b/optimizerDuck/Core/Models/UI/ProcessingProgress.cs
@@ -9,14 +9,17 @@ public record ProcessingProgress
/// A message describing the current operation state.
/// </summary>
public string Message { get; init; } = string.Empty;
+
/// <summary>
/// Indicates whether the progress is indeterminate (unknown total).
/// </summary>
public bool IsIndeterminate { get; init; } = true;
+
/// <summary>
/// The current progress value.
/// </summary>
public int Value { get; init; }
+
/// <summary>
/// The total number of steps or items.
/// </summary>
diff --git a/optimizerDuck/Core/Optimizers/SecurityAndPrivacy.cs b/optimizerDuck/Core/Optimizers/SecurityAndPrivacy.cs
index e0968c9..76e4529 100644
--- a/optimizerDuck/Core/Optimizers/SecurityAndPrivacy.cs
+++ b/optimizerDuck/Core/Optimizers/SecurityAndPrivacy.cs
@@ -1,3 +1,4 @@
+using System.Collections.ObjectModel;
using Microsoft.Extensions.Logging;
using optimizerDuck.Core.Interfaces;
using optimizerDuck.Core.Models.Attributes;
@@ -7,9 +8,6 @@ using optimizerDuck.Core.Models.UI;
using optimizerDuck.Services.Managers;
using optimizerDuck.Services.OptimizationServices;
using optimizerDuck.UI.Views.Pages.Optimizations;
-using System.Collections.ObjectModel;
-using System.Text.Json;
-using System.Xml.Linq;
namespace optimizerDuck.Core.Optimizers;
@@ -144,7 +142,6 @@ public class SecurityAndPrivacy : IOptimizationCategory
// @formatter:on
foreach (var task in tasksToDelete)
- {
try
{
if (!ScheduledTaskService.IsTaskEnabled(task))
@@ -160,7 +157,6 @@ public class SecurityAndPrivacy : IOptimizationCategory
{
context.Logger.LogWarning(ex, "Failed to disable task {Task}", task);
}
- }
return Task.FromResult(ApplyResult.True());
}
@@ -170,7 +166,8 @@ public class SecurityAndPrivacy : IOptimizationCategory
Tags = OptimizationTags.Privacy)]
public class DisableAutoLogger : BaseOptimization
{
- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress, OptimizationContext context)
+ public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,
+ OptimizationContext context)
{
RegistryService.Write(
new RegistryItem(@"HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger\AppModel", "Start", 0),
@@ -198,23 +195,24 @@ public class SecurityAndPrivacy : IOptimizationCategory
Tags = OptimizationTags.Privacy | OptimizationTags.System)]
public class DisableCortana : BaseOptimization
{
- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress, OptimizationContext context)
+ public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,
+ OptimizationContext context)
{
RegistryService.Write(
- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortana", 0),
- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCloudSearch", 0),
- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortanaAboveLock",
- 0),
- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowSearchToUseLocation",
- 0),
- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "ConnectedSearchUseWeb",
- 0),
- new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DisableWebSearch", 1),
- new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",
- "CortanaConsent", 0),
- new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",
- "CortanaConsent2", 0)
- );
+ new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortana", 0),
+ new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCloudSearch", 0),
+ new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowCortanaAboveLock",
+ 0),
+ new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "AllowSearchToUseLocation",
+ 0),
+ new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "ConnectedSearchUseWeb",
+ 0),
+ new RegistryItem(@"HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search", "DisableWebSearch", 1),
+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",
+ "CortanaConsent", 0),
+ new RegistryItem(@"HKCU\Software\Microsoft\Windows\CurrentVersion\Search",
+ "CortanaConsent2", 0)
+ );
context.Logger.LogInformation("Disabled Cortana and web search");
return Task.FromResult(ApplyResult.True());
}
@@ -224,7 +222,8 @@ public class SecurityAndPrivacy : IOptimizationCategory
Tags = OptimizationTags.Privacy | OptimizationTags.System)]
public class DisableCopilot : BaseOptimization
{
- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress, OptimizationContext context)
+ public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,
+ OptimizationContext context)
{
RegistryService.Write(
new RegistryItem(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot",
@@ -252,10 +251,11 @@ public class SecurityAndPrivacy : IOptimizationCategory
}
[Optimization(Id = "00C997FE-1CB7-41BD-B473-65A81333AEE9", Risk = OptimizationRisk.Safe,
- Tags = OptimizationTags.System | OptimizationTags.Latency | OptimizationTags.Privacy)]
+ Tags = OptimizationTags.System | OptimizationTags.Latency | OptimizationTags.Privacy)]
public class DisableContentDeliveryManager : BaseOptimization
{
- public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress, OptimizationContext context)
+ public override Task<ApplyResult> ApplyAsync(IProgress<ProcessingProgress> progress,
+ OptimizationContext context)
{
RegistryService.Write(
new RegistryItem(@"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager",
diff --git a/optimizerDuck/Resources/Languages/Translations.resx b/optimizerDuck/Resources/Languages/Translations.resx
index 14ad116..22c26f6 100644
--- a/optimizerDuck/Resources/Languages/Translations.resx
+++ b/optimizerDuck/Resources/Languages/Translations.resx
@@ -1195,7 +1195,7 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="StartupManager.Menu.OpenSettings" xml:space="preserve">
<value>Open Settings</value>
</data>
- <data name="Settings.About.LearnMore.Website" xml:space="preserve">
+ <data name="Settings.About.LearnMore.Website" xml:space="preserve">
<value>Official Website</value>
</data>
@@ -1218,6 +1218,9 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
</data>
<data name="ScheduledTasks.Loading" xml:space="preserve">
<value>Loading scheduled tasks...</value>
+ </data>
+ <data name="ScheduledTasks.Loading.Hint" xml:space="preserve">
+ <value>This may take a moment while scanning for all scheduled tasks on your system.</value>
</data>
<data name="ScheduledTasks.HideMicrosoft" xml:space="preserve">
<value>Hide Microsoft tasks</value>
@@ -1293,40 +1296,40 @@ Update now to enjoy the latest features, improvements, and bug fixes.</value>
<data name="ScheduledTasks.Details.Name" xml:space="preserve">
<value>Name</value>
</data>
- <data name="ScheduledTasks.Snackbar.Enabled.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Enabled.Title" xml:space="preserve">
<value>Task Enabled</value>
</data>
- <data name="ScheduledTasks.Snackbar.Disabled.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Disabled.Title" xml:space="preserve">
<value>Task Disabled</value>
</data>
- <data name="ScheduledTasks.Snackbar.Toggle.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Toggle.Message" xml:space="preserve">
<value>{0} has been updated successfully.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Run.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Run.Title" xml:space="preserve">
<value>Task Started</value>
</data>
- <data name="ScheduledTasks.Snackbar.Run.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Run.Message" xml:space="preserve">
<value>{0} is now running.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Stop.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Stop.Title" xml:space="preserve">
<value>Task Stopped</value>
</data>
- <data name="ScheduledTasks.Snackbar.Stop.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Stop.Message" xml:space="preserve">
<value>{0} has been stopped.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Delete.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Delete.Title" xml:space="preserve">
<value>Task Deleted</value>
</data>
- <data name="ScheduledTasks.Snackbar.Delete.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Delete.Message" xml:space="preserve">
<value>{0} has been deleted.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Create.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Create.Title" xml:space="preserve">
<value>Task Created</value>
</data>
- <data name="ScheduledTasks.Snackbar.Create.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Create.Message" xml:space="preserve">
<value>{0} has been created successfully.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Error.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Error.Title" xml:space="preserve">
<value>Error</value>
</data>
diff --git a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
index b469c0f..5c8fa21 100644
--- a/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
+++ b/optimizerDuck/Resources/Languages/Translations.vi-VN.resx
@@ -1,1322 +1,1328 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root" xmlns="">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
+ id="root" xmlns="">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
+ <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0"/>
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string"/>
+ <xsd:attribute name="type" type="xsd:string"/>
+ <xsd:attribute name="mimetype" type="xsd:string"/>
+ <xsd:attribute ref="xml:space"/>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string"/>
+ <xsd:attribute name="name" type="xsd:string"/>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
+ <xsd:attribute ref="xml:space"/>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
</xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral,
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral,
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
</value>
- </resheader>
- <data name="Dashboard.Header.Title" xml:space="preserve">
+ </resheader>
+ <data name="Dashboard.Header.Title" xml:space="preserve">
<value>Dashboard</value>
</data>
- <data name="Sidebar.Dashboard" xml:space="preserve">
+ <data name="Sidebar.Dashboard" xml:space="preserve">
<value>Dashboard</value>
</data>
- <data name="Sidebar.Settings" xml:space="preserve">
+ <data name="Sidebar.Settings" xml:space="preserve">
<value>Cài đặt</value>
</data>
- <data name="Button.Close" xml:space="preserve">
+ <data name="Button.Close" xml:space="preserve">
<value>Hủy</value>
</data>
- <data name="Dashboard.SystemInfo.Cpu.Cores" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Cpu.Cores" xml:space="preserve">
<value>{0} Nhân</value>
</data>
- <data name="Dashboard.SystemInfo.Storage.DiskInfo" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Storage.DiskInfo" xml:space="preserve">
<value>Đã dùng {0} GB trên tổng {1} GB (còn {2} GB trống)</value>
</data>
- <data name="Dashboard.SystemInfo.Ram.Modules" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Ram.Modules" xml:space="preserve">
<value>{0} thanh RAM</value>
</data>
- <data name="Dashboard.SystemInfo.Cpu.Threads" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Cpu.Threads" xml:space="preserve">
<value>{0} Luồng</value>
</data>
- <data name="Dashboard.SystemInfo.Storage.System" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Storage.System" xml:space="preserve">
<value>HỆ THỐNG</value>
</data>
- <data name="Dashboard.SystemInfo.Storage.Header" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Storage.Header" xml:space="preserve">
<value>Ổ cứng</value>
</data>
- <data name="Dashboard.SystemInfo.Ram.Used" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Ram.Used" xml:space="preserve">
<value>{0} GB đã dùng</value>
</data>
- <data name="Dashboard.SystemInfo.Ram.Available" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Ram.Available" xml:space="preserve">
<value>{0} GB khả dụng</value>
</data>
- <data name="Dashboard.SystemInfo.Loading" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Loading" xml:space="preserve">
<value>Đang lấy thông tin hệ thống...</value>
</data>
- <data name="Sidebar.Optimize" xml:space="preserve">
+ <data name="Sidebar.Optimize" xml:space="preserve">
<value>Tối ưu</value>
</data>
- <data name="Dashboard.SystemInfo.Gpu.More" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Gpu.More" xml:space="preserve">
<value>Còn {0} GPU khác</value>
</data>
- <data name="Dashboard.Actions.Discord.Title" xml:space="preserve">
+ <data name="Dashboard.Actions.Discord.Title" xml:space="preserve">
<value>Cộng Đồng Discord</value>
</data>
- <data name="Dashboard.Actions.Discord.Description" xml:space="preserve">
+ <data name="Dashboard.Actions.Discord.Description" xml:space="preserve">
<value>Tham gia cộng đồng Discord của tôi để... được hỗ trợ hoặc chơi game với tôi</value>
</data>
- <data name="Dashboard.Actions.GitHub.Title" xml:space="preserve">
+ <data name="Dashboard.Actions.GitHub.Title" xml:space="preserve">
<value>Mã nguồn trên GitHub</value>
</data>
- <data name="Dashboard.Actions.GitHub.Description" xml:space="preserve">
+ <data name="Dashboard.Actions.GitHub.Description" xml:space="preserve">
<value>Khám phá, theo dõi và đóng góp mã nguồn trực tiếp tại GitHub</value>
</data>
- <data name="Dashboard.Actions.SupportMe.Title" xml:space="preserve">
+ <data name="Dashboard.Actions.SupportMe.Title" xml:space="preserve">
<value>Đóng góp</value>
</data>
- <data name="Dashboard.Actions.SupportMe.Description" xml:space="preserve">
+ <data name="Dashboard.Actions.SupportMe.Description" xml:space="preserve">
<value>Star repository trên GitHub, chia sẻ với bạn bè hoặc ủng hộ dự án mỗi sự giúp đỡ đều giúp dự án phát triển!</value>
</data>
- <data name="Settings.LanguageChanged.Title" xml:space="preserve">
+ <data name="Settings.LanguageChanged.Title" xml:space="preserve">
<value>Thay đổi ngôn ngữ</value>
</data>
- <data name="Settings.LanguageChanged.Description" xml:space="preserve">
+ <data name="Settings.LanguageChanged.Description" xml:space="preserve">
<value>Bạn cần phải khởi động lại ứng dụng để áp dụng ngôn ngữ mới.</value>
</data>
- <data name="Button.Ok" xml:space="preserve">
+ <data name="Button.Ok" xml:space="preserve">
<value>OK</value>
</data>
- <data name="Settings.Header.Title" xml:space="preserve">
+ <data name="Settings.Header.Title" xml:space="preserve">
<value>Cài đặt</value>
</data>
- <data name="Settings.Appearance.Header" xml:space="preserve">
+ <data name="Settings.Appearance.Header" xml:space="preserve">
<value>Giao diện</value>
</data>
- <data name="Settings.Appearance.LanguageSelector.Title" xml:space="preserve">
+ <data name="Settings.Appearance.LanguageSelector.Title" xml:space="preserve">
<value>Ngôn ngữ</value>
</data>
- <data name="Settings.Appearance.LanguageSelector.Description" xml:space="preserve">
+ <data name="Settings.Appearance.LanguageSelector.Description" xml:space="preserve">
<value>Chọn ngôn ngữ bạn muốn.</value>
</data>
- <data name="Settings.Appearance.ThemeSelector.Title" xml:space="preserve">
+ <data name="Settings.Appearance.ThemeSelector.Title" xml:space="preserve">
<value>Chủ đề</value>
</data>
- <data name="Settings.Appearance.ThemeSelector.Description" xml:space="preserve">
+ <data name="Settings.Appearance.ThemeSelector.Description" xml:space="preserve">
<value>Chọn giao diện bạn muốn sử dụng.</value>
</data>
- <data name="Settings.Appearance.ThemeSelector.Light" xml:space="preserve">
+ <data name="Settings.Appearance.ThemeSelector.Light" xml:space="preserve">
<value>Sáng</value>
</data>
- <data name="Settings.Appearance.ThemeSelector.Dark" xml:space="preserve">
+ <data name="Settings.Appearance.ThemeSelector.Dark" xml:space="preserve">
<value>Tối</value>
</data>
- <data name="Settings.Appearance.ThemeSelector.HighContrast" xml:space="preserve">
+ <data name="Settings.Appearance.ThemeSelector.HighContrast" xml:space="preserve">
<value>Tương phản cao</value>
</data>
- <data name="Common.AppliedSecondsAgo" xml:space="preserve">
+ <data name="Common.AppliedSecondsAgo" xml:space="preserve">
<value>Đã áp dụng {0} giây trước</value>
</data>
- <data name="Common.AppliedMinutesAgo" xml:space="preserve">
+ <data name="Common.AppliedMinutesAgo" xml:space="preserve">
<value>Đã áp dụng {0} phút trước</value>
</data>
- <data name="Common.AppliedHoursAgo" xml:space="preserve">
+ <data name="Common.AppliedHoursAgo" xml:space="preserve">
<value>Đã áp dụng {0} giờ trước</value>
</data>
- <data name="Common.AppliedDaysAgo" xml:space="preserve">
+ <data name="Common.AppliedDaysAgo" xml:space="preserve">
<value>Đã áp dụng {0} ngày trước</value>
</data>
- <data name="Common.AppliedMonthsAgo" xml:space="preserve">
+ <data name="Common.AppliedMonthsAgo" xml:space="preserve">
<value>Đã áp dụng {0} tháng trước</value>
</data>
- <data name="Common.AppliedYearsAgo" xml:space="preserve">
+ <data name="Common.AppliedYearsAgo" xml:space="preserve">
<value>Đã áp dụng {0} năm trước</value>
</data>
- <data name="Optimizer.UI.Risk.Safe" xml:space="preserve">
+ <data name="Optimizer.UI.Risk.Safe" xml:space="preserve">
<value>An toàn</value>
</data>
- <data name="Optimizer.UI.Risk.Moderate" xml:space="preserve">
+ <data name="Optimizer.UI.Risk.Moderate" xml:space="preserve">
<value>Cẩn thận</value>
</data>
- <data name="Optimizer.UI.Risk.Risky" xml:space="preserve">
+ <data name="Optimizer.UI.Risk.Risky" xml:space="preserve">
<value>Nguy hiểm</value>
</data>
- <data name="OptimizationDetailsDialog.DetailedDescription" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.DetailedDescription" xml:space="preserve">
<value>Mô tả chi tiết</value>
</data>
- <data name="OptimizationDetailsDialog.Tags" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Tags" xml:space="preserve">
<value>Thẻ</value>
</data>
- <data name="OptimizationDetailsDialog.Other" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Other" xml:space="preserve">
<value>Khác</value>
</data>
- <data name="Optimizer.Performance.SvcHostSplit.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.SvcHostSplit.ShortDescription" xml:space="preserve">
<value>Chia nhỏ các dịch vụ hệ thống thành các tiến trình riêng biệt để tăng đáng kể độ ổn định.</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.DetectActivePlanFailed" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.DetectActivePlanFailed"
+ xml:space="preserve">
<value>Không thể phát hiện power plan đang hoạt động hiện tại.</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.ImportFailed" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.ImportFailed" xml:space="preserve">
<value>Không thể nhập power plan của optimizerDuck.</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.ActivateFailed" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.ActivateFailed" xml:space="preserve">
<value>Không thể kích hoạt power plan của optimizerDuck.</value>
</data>
- <data name="Optimizer.UI.Risk.Help" xml:space="preserve">
+ <data name="Optimizer.UI.Risk.Help" xml:space="preserve">
<value>Giá trị này thể hiện mức độ can thiệp và mức độ an toàn của quá trình tối ưu hóa. Vui lòng thận trọng và xem xét kỹ lưỡng trước khi áp dụng bất kỳ tối ưu nào.</value>
</data>
- <data name="Optimizer.UI.Tags.System" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.System" xml:space="preserve">
<value>Hệ thống</value>
</data>
- <data name="Optimizer.UI.Tags.Ram" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Ram" xml:space="preserve">
<value>Ram</value>
</data>
- <data name="Optimizer.UI.Tags.Disk" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Disk" xml:space="preserve">
<value>Ổ cứng</value>
</data>
- <data name="Optimizer.UI.Tags.NetworkRequired" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.NetworkRequired" xml:space="preserve">
<value>Cần kết nối mạng</value>
</data>
- <data name="Optimizer.UI.Tags.Network" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Network" xml:space="preserve">
<value>Mạng</value>
</data>
- <data name="Optimizer.UI.Tags.Privacy" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Privacy" xml:space="preserve">
<value>Quyền riêng tư</value>
</data>
- <data name="Optimizer.UI.Tags.Audio" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Audio" xml:space="preserve">
<value>Âm thanh</value>
</data>
- <data name="Optimizer.UI.Tags.Help" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Help" xml:space="preserve">
<value>Các thẻ này cho biết tối ưu sẽ ảnh hưởng đến phần nào trong hệ thống.</value>
</data>
- <data name="Optimizer.UI.Tags.Nvidia" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Nvidia" xml:space="preserve">
<value>NVIDIA</value>
</data>
- <data name="Optimizer.UI.Tags.Amd" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Amd" xml:space="preserve">
<value>AMD</value>
</data>
- <data name="Optimizer.UI.Tags.Intel" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Intel" xml:space="preserve">
<value>Intel</value>
</data>
- <data name="Optimizer.UI.Tags.Power" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Power" xml:space="preserve">
<value>Công suất/Điện năng</value>
</data>
- <data name="Revert.Error.InvalidData" xml:space="preserve">
+ <data name="Revert.Error.InvalidData" xml:space="preserve">
<value>Dữ liệu hoàn tác không hợp lệ cho {0}: {1}</value>
</data>
- <data name="Revert.Error.NoDataFound" xml:space="preserve">
+ <data name="Revert.Error.NoDataFound" xml:space="preserve">
<value>Không tìm thấy dữ liệu hoàn tác cho {0}.</value>
</data>
- <data name="Optimization.Revert.Reverting" xml:space="preserve">
+ <data name="Optimization.Revert.Reverting" xml:space="preserve">
<value>Đang hoàn tác...</value>
</data>
- <data name="Optimization.Revert.Success" xml:space="preserve">
+ <data name="Optimization.Revert.Success" xml:space="preserve">
<value>Hoàn tác {0} thành công!</value>
</data>
- <data name="Optimization.Revert.Error.FailedWithSteps" xml:space="preserve">
+ <data name="Optimization.Revert.Error.FailedWithSteps" xml:space="preserve">
<value>Hoàn tác {0} nhưng có {1} bước thất bại.</value>
</data>
- <data name="Revert.Error.RevertFailed" xml:space="preserve">
+ <data name="Revert.Error.RevertFailed" xml:space="preserve">
<value>Không thể hoàn tác {0}: {1}</value>
</data>
- <data name="Optimization.Revert.ExecutingStep" xml:space="preserve">
+ <data name="Optimization.Revert.ExecutingStep" xml:space="preserve">
<value>Đang thực hiện bước hoàn tác: {0}/{1} ({2})</value>
</data>
- <data name="Revert.Error.FileNotFound" xml:space="preserve">
+ <data name="Revert.Error.FileNotFound" xml:space="preserve">
<value>Không tìm thấy tệp hoàn tác</value>
</data>
- <data name="Revert.Error.FileEmpty" xml:space="preserve">
+ <data name="Revert.Error.FileEmpty" xml:space="preserve">
<value>Tệp hoàn tác trống</value>
</data>
- <data name="Revert.Error.ReadFailed" xml:space="preserve">
+ <data name="Revert.Error.ReadFailed" xml:space="preserve">
<value>Không thể đọc dữ liệu hoàn tác: {0}</value>
</data>
- <data name="Revert.Error.InvalidJson" xml:space="preserve">
+ <data name="Revert.Error.InvalidJson" xml:space="preserve">
<value>Dữ liệu hoàn tác không hợp lệ</value>
</data>
- <data name="Revert.Error.InvalidJsonFormat" xml:space="preserve">
+ <data name="Revert.Error.InvalidJsonFormat" xml:space="preserve">
<value>Định dạng JSON không hợp lệ: {0}</value>
</data>
- <data name="Revert.Error.NoSteps" xml:space="preserve">
+ <data name="Revert.Error.NoSteps" xml:space="preserve">
<value>Không có bước hoàn tác.</value>
</data>
- <data name="Revert.Error.InvalidSteps" xml:space="preserve">
+ <data name="Revert.Error.InvalidSteps" xml:space="preserve">
<value>Các bước hoàn tác không hợp lệ: {0}</value>
</data>
- <data name="Revert.Error.OptimizationIdMismatch" xml:space="preserve">
+ <data name="Revert.Error.OptimizationIdMismatch" xml:space="preserve">
<value>OptimizationId không khớp.</value>
</data>
- <data name="Optimization.Apply.Processing" xml:space="preserve">
+ <data name="Optimization.Apply.Processing" xml:space="preserve">
<value>Đang áp dụng...</value>
</data>
- <data name="Optimization.Apply.Completed" xml:space="preserve">
+ <data name="Optimization.Apply.Completed" xml:space="preserve">
<value>Hoàn tất</value>
</data>
- <data name="Optimization.Apply.Success" xml:space="preserve">
+ <data name="Optimization.Apply.Success" xml:space="preserve">
<value>Áp dụng {0} thành công.</value>
</data>
- <data name="Optimization.Apply.Error.FailedWithSteps" xml:space="preserve">
+ <data name="Optimization.Apply.Error.FailedWithSteps" xml:space="preserve">
<value>Đã áp dụng {0} nhưng có {1} bước bị lỗi.</value>
</data>
- <data name="Optimization.Apply.Error.Failed" xml:space="preserve">
+ <data name="Optimization.Apply.Error.Failed" xml:space="preserve">
<value>Không thể áp dụng {0}.</value>
</data>
- <data name="Service.Common.Error.AccessDenied" xml:space="preserve">
+ <data name="Service.Common.Error.AccessDenied" xml:space="preserve">
<value>Không có quyền truy cập</value>
</data>
- <data name="Service.Registry.Error.AccessDeniedProtectedHive" xml:space="preserve">
+ <data name="Service.Registry.Error.AccessDeniedProtectedHive" xml:space="preserve">
<value>Bị từ chối truy cập (registry được bảo vệ)</value>
</data>
- <data name="Service.Registry.Error.UnauthorizedAccess" xml:space="preserve">
+ <data name="Service.Registry.Error.UnauthorizedAccess" xml:space="preserve">
<value>Không có quyền truy cập</value>
</data>
- <data name="Service.Registry.Error.CreateOrOpenSubkeyFailed" xml:space="preserve">
+ <data name="Service.Registry.Error.CreateOrOpenSubkeyFailed" xml:space="preserve">
<value>Không thể tạo/mở khóa con (subkey)</value>
</data>
- <data name="Service.Service.Error.NotFound" xml:space="preserve">
+ <data name="Service.Service.Error.NotFound" xml:space="preserve">
<value>Không tìm thấy dịch vụ</value>
</data>
- <data name="Service.Service.Error.UpdateRegistryForStartupTypeFailed" xml:space="preserve">
+ <data name="Service.Service.Error.UpdateRegistryForStartupTypeFailed" xml:space="preserve">
<value>Không thể cập nhật registry cho kiểu khởi động</value>
</data>
- <data name="Service.Service.Error.ChangeStartModeFailedWithCode" xml:space="preserve">
+ <data name="Service.Service.Error.ChangeStartModeFailedWithCode" xml:space="preserve">
<value>ChangeStartMode thất bại (mã: {0})</value>
</data>
- <data name="Service.Shell.Error.ExitCode" xml:space="preserve">
+ <data name="Service.Shell.Error.ExitCode" xml:space="preserve">
<value>Mã thoát {0}</value>
</data>
- <data name="Service.Shell.Error.TimedOut" xml:space="preserve">
+ <data name="Service.Shell.Error.TimedOut" xml:space="preserve">
<value>Hết thời gian chờ</value>
</data>
- <data name="OptimizationResultDialog.Header" xml:space="preserve">
+ <data name="OptimizationResultDialog.Header" xml:space="preserve">
<value>{0} Bước bị lỗi</value>
</data>
- <data name="OptimizationResultDialog.Description" xml:space="preserve">
+ <data name="OptimizationResultDialog.Description" xml:space="preserve">
<value>Một số bước chưa hoàn tất thành công. Bạn có thể thử lại chỉ những bước bị lỗi.</value>
</data>
- <data name="Button.Retry" xml:space="preserve">
+ <data name="Button.Retry" xml:space="preserve">
<value>Thử lại</value>
</data>
- <data name="Settings.About.Duck.Description" xml:space="preserve">
+ <data name="Settings.About.Duck.Description" xml:space="preserve">
<value>Cảm ơn bạn đã tin tưởng và ủng hộ &lt;3!
Phiên bản hiện tại: {0} </value>
</data>
- <data name="Settings.Advanced.Header" xml:space="preserve">
+ <data name="Settings.Advanced.Header" xml:space="preserve">
<value>Nâng cao</value>
</data>
- <data name="Settings.Optimize.Header" xml:space="preserve">
+ <data name="Settings.Optimize.Header" xml:space="preserve">
<value>Tối ưu</value>
</data>
- <data name="Settings.Optimize.ShellTimeout.Title" xml:space="preserve">
+ <data name="Settings.Optimize.ShellTimeout.Title" xml:space="preserve">
<value>Thời gian chờ dịch vụ shell</value>
</data>
- <data name="Settings.Optimize.ShellTimeout.Description" xml:space="preserve">
+ <data name="Settings.Optimize.ShellTimeout.Description" xml:space="preserve">
<value>Thời gian chờ cho mỗi lệnh shell (tính bằng mili‑giây).</value>
</data>
- <data name="Settings.Advanced.ClearResources.Title" xml:space="preserve">
+ <data name="Settings.Advanced.ClearResources.Title" xml:space="preserve">
<value>Dọn dẹp tài nguyên</value>
</data>
- <data name="Settings.Advanced.ClearResources.Description" xml:space="preserve">
+ <data name="Settings.Advanced.ClearResources.Description" xml:space="preserve">
<value>Xóa tất cả tệp đã tải về trong quá trình tối ưu.</value>
</data>
- <data name="Settings.Advanced.ClearRevertDatas.Title" xml:space="preserve">
+ <data name="Settings.Advanced.ClearRevertDatas.Title" xml:space="preserve">
<value>Xóa toàn bộ dữ liệu hoàn tác</value>
</data>
- <data name="Settings.Advanced.ClearRevertDatas.Description" xml:space="preserve">
+ <data name="Settings.Advanced.ClearRevertDatas.Description" xml:space="preserve">
<value>Xóa toàn bộ các dữ liệu hoàn tác của các tối ưu.</value>
</data>
- <data name="Button.Clear" xml:space="preserve">
+ <data name="Button.Clear" xml:space="preserve">
<value>Xóa</value>
</data>
- <data name="Settings.Advanced.OpenRootDir.Title" xml:space="preserve">
+ <data name="Settings.Advanced.OpenRootDir.Title" xml:space="preserve">
<value>Mở thư mục root</value>
</data>
- <data name="Settings.Advanced.OpenRootDir.Description" xml:space="preserve">
+ <data name="Settings.Advanced.OpenRootDir.Description" xml:space="preserve">
<value>Mở thư mục gốc của ứng dụng, nơi chứa tất cả các tệp cần thiết.</value>
</data>
- <data name="Button.Open" xml:space="preserve">
+ <data name="Button.Open" xml:space="preserve">
<value>Mở</value>
</data>
- <data name="Settings.About.Header" xml:space="preserve">
+ <data name="Settings.About.Header" xml:space="preserve">
<value>Giới thiệu</value>
</data>
- <data name="Settings.About.LearnMore" xml:space="preserve">
+ <data name="Settings.About.LearnMore" xml:space="preserve">
<value>Tìm hiểu thêm</value>
</data>
- <data name="Settings.About.LearnMore.Documentation" xml:space="preserve">
+ <data name="Settings.About.LearnMore.Documentation" xml:space="preserve">
<value>Tài liệu hướng dẫn</value>
</data>
- <data name="Settings.About.LearnMore.Contribute" xml:space="preserve">
+ <data name="Settings.About.LearnMore.Contribute" xml:space="preserve">
<value>Đóng góp cho dự án</value>
</data>
- <data name="Dialog.AreYouSure.Title" xml:space="preserve">
+ <data name="Dialog.AreYouSure.Title" xml:space="preserve">
<value>Bạn có chắc chắn muốn tiếp tục không?</value>
</data>
- <data name="Settings.ClearResources.Description" xml:space="preserve">
+ <data name="Settings.ClearResources.Description" xml:space="preserve">
<value>Bạn sắp xóa tất cả các tài nguyên đã được tải xuống hoặc tạo ra trong quá trình tối ưu. Xin lưu ý rằng hành động này là vĩnh viễn và không thể hoàn tác, vì vậy hãy chắc chắn trước khi tiếp tục.</value>
</data>
- <data name="Button.Cancel" xml:space="preserve">
+ <data name="Button.Cancel" xml:space="preserve">
<value>Hủy</value>
</data>
- <data name="Button.Skip" xml:space="preserve">
+ <data name="Button.Skip" xml:space="preserve">
<value>Bỏ qua</value>
</data>
- <data name="Settings.ClearRevertData.Description" xml:space="preserve">
+ <data name="Settings.ClearRevertData.Description" xml:space="preserve">
<value>Bạn chuẩn bị xóa tất cả dữ liệu hoàn tác được tạo sau quá trình tối ưu. Việc này đồng nghĩa với việc bạn sẽ không thể khôi phục lại trạng thái trước tối ưu, vì vậy hãy cân nhắc thật kỹ trước khi xác nhận.</value>
</data>
- <data name="ProcessingOptimizationDialog.Warning.DontCloseAppOrRestart" xml:space="preserve">
+ <data name="ProcessingOptimizationDialog.Warning.DontCloseAppOrRestart" xml:space="preserve">
<value>Vui lòng không tắt ứng dụng hoặc tắt máy trong khi đang áp dụng hoặc hoàn tác các thay đổi hệ thống.</value>
</data>
- <data name="Common.AppliedJustNow" xml:space="preserve">
+ <data name="Common.AppliedJustNow" xml:space="preserve">
<value>Vừa áp dụng</value>
</data>
- <data name="Optimization.Apply.Snackbar.Error.Title" xml:space="preserve">
+ <data name="Optimization.Apply.Snackbar.Error.Title" xml:space="preserve">
<value>Đã xảy ra lỗi sau khi áp dụng.</value>
</data>
- <data name="Optimization.Revert.Snackbar.Error.Title" xml:space="preserve">
+ <data name="Optimization.Revert.Snackbar.Error.Title" xml:space="preserve">
<value>Đã xảy ra lỗi sau khi hoàn tác</value>
</data>
- <data name="Optimization.Toggle.Snackbar.Error.Title" xml:space="preserve">
+ <data name="Optimization.Toggle.Snackbar.Error.Title" xml:space="preserve">
<value>Không thể áp dụng/hoàn tác tối ưu</value>
</data>
- <data name="Optimization.Toggle.Snackbar.Error.Message" xml:space="preserve">
+ <data name="Optimization.Toggle.Snackbar.Error.Message" xml:space="preserve">
<value>Đã xảy ra lỗi: {0}</value>
</data>
- <data name="Optimization.Retry.Processing" xml:space="preserve">
+ <data name="Optimization.Retry.Processing" xml:space="preserve">
<value>Đang thử lại các bước thất bại...</value>
</data>
- <data name="Optimization.RetryStep.Processing" xml:space="preserve">
+ <data name="Optimization.RetryStep.Processing" xml:space="preserve">
<value>Đang thử lại bước {0} ({1}/ {2} bước)</value>
</data>
- <data name="Optimization.Revert.Error.Failed" xml:space="preserve">
+ <data name="Optimization.Revert.Error.Failed" xml:space="preserve">
<value>Không thể hoàn tác {0}.</value>
</data>
- <data name="Dashboard.Header.Menu.Refresh" xml:space="preserve">
+ <data name="Dashboard.Header.Menu.Refresh" xml:space="preserve">
<value>Làm mới</value>
</data>
- <data name="Dashboard.Header.Menu.Header.Options" xml:space="preserve">
+ <data name="Dashboard.Header.Menu.Header.Options" xml:space="preserve">
<value>Tùy chọn</value>
</data>
- <data name="Dashboard.Header.Menu.Header.Run" xml:space="preserve">
+ <data name="Dashboard.Header.Menu.Header.Run" xml:space="preserve">
<value>Mở</value>
</data>
- <data name="Dashboard.Header.Menu.RunSettings" xml:space="preserve">
+ <data name="Dashboard.Header.Menu.RunSettings" xml:space="preserve">
<value>Cài đặt</value>
</data>
- <data name="Dashboard.Header.Menu.RunTaskManager" xml:space="preserve">
+ <data name="Dashboard.Header.Menu.RunTaskManager" xml:space="preserve">
<value>Task Manager</value>
</data>
- <data name="Dashboard.Header.Menu.RunControlPanel" xml:space="preserve">
+ <data name="Dashboard.Header.Menu.RunControlPanel" xml:space="preserve">
<value>Control Panel</value>
</data>
- <data name="Common.Unknown" xml:space="preserve">
+ <data name="Common.Unknown" xml:space="preserve">
<value>Không rõ</value>
</data>
- <data name="Optimizer.UI.Tags.Security" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Security" xml:space="preserve">
<value>Bảo mật</value>
</data>
- <data name="Optimizer.UI.Tags.Performance" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Performance" xml:space="preserve">
<value>Hiệu suất</value>
</data>
- <data name="Optimizer.UI.Tags.Latency" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Latency" xml:space="preserve">
<value>Độ trễ</value>
</data>
- <data name="Optimizer.Performance" xml:space="preserve">
+ <data name="Optimizer.Performance" xml:space="preserve">
<value>Hiệu suất</value>
</data>
- <data name="Optimizer.PowerManagement" xml:space="preserve">
+ <data name="Optimizer.PowerManagement" xml:space="preserve">
<value>Quản lý điện năng</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy" xml:space="preserve">
<value>Bảo mật &amp; Quyền riêng tư</value>
</data>
- <data name="Optimizer.BloatwareAndServices" xml:space="preserve">
+ <data name="Optimizer.BloatwareAndServices" xml:space="preserve">
<value>Bloatware &amp; Dịch vụ</value>
</data>
- <data name="Optimizer.Performance.DisableBackgroundApps.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableBackgroundApps.Name" xml:space="preserve">
<value>Vô hiệu hóa ứng dụng nền</value>
</data>
- <data name="Optimizer.Performance.DisableBackgroundApps.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableBackgroundApps.ShortDescription" xml:space="preserve">
<value>Ngăn các ứng dụng chạy ngầm khi không sử dụng để giải phóng RAM và giảm tải cho CPU.</value>
</data>
- <data name="Optimizer.Performance.SvcHostSplit.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.SvcHostSplit.Name" xml:space="preserve">
<value>Tối ưu hóa cô lập dịch vụ</value>
</data>
- <data name="Optimizer.Performance.SvcHostSplit.Error.InvalidRAM" xml:space="preserve">
+ <data name="Optimizer.Performance.SvcHostSplit.Error.InvalidRAM" xml:space="preserve">
<value>RAM không hợp lệ: {0}</value>
</data>
- <data name="Optimizer.Performance.ProcessPriority.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.ProcessPriority.Name" xml:space="preserve">
<value>Ưu tiên ứng dụng đang dùng</value>
</data>
- <data name="Optimizer.Performance.ProcessPriority.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.ProcessPriority.ShortDescription" xml:space="preserve">
<value>Cấu hình Win32PrioritySeparation thành 38 (Short, Variable, High foreground boost), ưu tiên ứng dụng đang hoạt động và giảm độ trễ đầu vào.</value>
</data>
- <data name="Optimizer.Performance.GameTaskScheduling.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.GameTaskScheduling.Name" xml:space="preserve">
<value>Tối ưu hóa lập lịch trò chơi</value>
</data>
- <data name="Optimizer.Performance.GameTaskScheduling.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.GameTaskScheduling.ShortDescription" xml:space="preserve">
<value>Cấu hình hồ sơ tác vụ MMCSS "Games" với danh mục lập lịch High và mức ưu tiên GPU/IO cao để đảm bảo frame pacing ổn định.</value>
</data>
- <data name="Optimizer.Performance.MultimediaResponsiveness.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.MultimediaResponsiveness.Name" xml:space="preserve">
<value>Tối ưu hóa phản hồi đa phương tiện</value>
</data>
- <data name="Optimizer.Performance.MultimediaResponsiveness.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.MultimediaResponsiveness.ShortDescription" xml:space="preserve">
<value>Giảm thiểu độ trễ MMCSS bằng cách đặt SystemResponsiveness thành 10 và vô hiệu hóa điều tiết mạng (0xFFFFFFFF) cho các tác vụ thời gian thực.</value>
</data>
- <data name="Optimizer.Performance.DisableGameBar.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableGameBar.Name" xml:space="preserve">
<value>Tắt Xbox Game Bar</value>
</data>
- <data name="Optimizer.Performance.DisableGameBar.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableGameBar.ShortDescription" xml:space="preserve">
<value>Vô hiệu hóa lớp phủ Xbox Game Bar, thông báo khởi động và tích hợp phím tắt để loại bỏ chi phí xử lý nền từ tính năng ghi hình.</value>
</data>
- <data name="Optimizer.Performance.EnableGameMode.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.EnableGameMode.Name" xml:space="preserve">
<value>Kích hoạt Chế độ trò chơi</value>
</data>
- <data name="Optimizer.Performance.EnableGameMode.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.EnableGameMode.ShortDescription" xml:space="preserve">
<value>Bật Game Mode để ưu tiên game và tạm hoãn các hoạt động gây gián đoạn của Windows Update.</value>
</data>
- <data name="Optimizer.Performance.DisableGameDVR.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableGameDVR.Name" xml:space="preserve">
<value>Vô hiệu hóa ghi hình nền</value>
</data>
- <data name="Optimizer.Performance.DisableGameDVR.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableGameDVR.ShortDescription" xml:space="preserve">
<value>Tắt tính năng tự động ghi hình game chạy ngầm (DVR) để thu hồi hiệu năng bị chiếm dụng.</value>
</data>
- <data name="Optimizer.Performance.DisableMouseAcceleration.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableMouseAcceleration.Name" xml:space="preserve">
<value>Loại bỏ gia tốc chuột</value>
</data>
- <data name="Optimizer.Performance.DisableMouseAcceleration.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableMouseAcceleration.ShortDescription" xml:space="preserve">
<value>Vô hiệu hóa việc tự động tăng tốc chuột của Windows, mang lại cảm giác di chuột chính xác 1:1.</value>
</data>
- <data name="Optimizer.Performance.KeyboardLatencyOptimization.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.KeyboardLatencyOptimization.Name" xml:space="preserve">
<value>Tối ưu hóa độ trễ bàn phím</value>
</data>
- <data name="Optimizer.Performance.KeyboardLatencyOptimization.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.KeyboardLatencyOptimization.ShortDescription" xml:space="preserve">
<value>Giảm thời gian chờ và tăng tốc độ phản hồi phím nhấn, giúp thao tác gõ phím nhanh và nhạy hơn.</value>
</data>
- <data name="Optimizer.PowerManagement.DisableHibernate.Name" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.DisableHibernate.Name" xml:space="preserve">
<value>Vô hiệu hóa Chế độ ngủ đông</value>
</data>
- <data name="Optimizer.PowerManagement.DisableHibernate.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.DisableHibernate.ShortDescription" xml:space="preserve">
<value>Tắt tính năng Hibernate và Fast Startup để giải phóng bộ nhớ ổ cứng và khởi động máy sạch hơn.</value>
</data>
- <data name="Optimizer.PowerManagement.DisableUSBPowerSaving.Name" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.DisableUSBPowerSaving.Name" xml:space="preserve">
<value>Ngăn ngắt nguồn cổng USB</value>
</data>
- <data name="Optimizer.PowerManagement.DisableUSBPowerSaving.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.DisableUSBPowerSaving.ShortDescription" xml:space="preserve">
<value>Ngăn Windows tự động ngắt điện các cổng USB khi không dùng, tránh độ trễ cho chuột và bàn phím.</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Name" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Name" xml:space="preserve">
<value>Cài đặt Sơ đồ năng lượng tối ưu</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.ShortDescription" xml:space="preserve">
<value>Kích hoạt sơ đồ năng lượng đặc biệt giúp máy luôn đạt hiệu năng cao nhất. (Có thể làm tăng nhiệt độ).</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Progress.Downloading" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Progress.Downloading" xml:space="preserve">
<value>Đang tải power plan...</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Progress.Importing" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Progress.Importing" xml:space="preserve">
<value>Đang import và set active power plan...</value>
</data>
- <data name="Optimizer.PowerManagement.DisablePowerSaving.Name" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.DisablePowerSaving.Name" xml:space="preserve">
<value>Vô hiệu hóa giới hạn năng lượng</value>
</data>
- <data name="Optimizer.PowerManagement.DisablePowerSaving.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.DisablePowerSaving.ShortDescription" xml:space="preserve">
<value>Ngăn Windows tự động giảm hiệu năng CPU (Power Throttling) để duy trì sức mạnh tối đa cho hệ thống.</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableUAC.Name" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableUAC.Name" xml:space="preserve">
<value>Vô hiệu hóa xác nhận Admin (UAC)</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableUAC.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableUAC.ShortDescription" xml:space="preserve">
<value>Tắt các hộp thoại yêu cầu xác nhận khi mở ứng dụng với quyền Admin. Lưu ý: Làm giảm bảo mật.</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Name" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Name" xml:space="preserve">
<value>Vô hiệu hóa thu thập dữ liệu (Telemetry)</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.ShortDescription" xml:space="preserve">
<value>Tắt các dịch vụ theo dõi và gửi báo cáo sử dụng của Windows về Microsoft, giúp bảo vệ quyền riêng tư cá nhân.</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Progress.EditRegistry" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Progress.EditRegistry" xml:space="preserve">
<value>Đang áp dụng các chính sách và registry...</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Progress.DisableServices" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Progress.DisableServices" xml:space="preserve">
<value>Đang tắt các dịch vụ telemetry...</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Progress.DisableTasks" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableTelemetry.Progress.DisableTasks" xml:space="preserve">
<value>Đang tắt các tác vụ telemetry theo lịch trình…</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableAutoLogger.Name" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableAutoLogger.Name" xml:space="preserve">
<value>Vô hiệu hóa nhật ký hệ thống</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableAutoLogger.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableAutoLogger.ShortDescription" xml:space="preserve">
<value>Ngăn việc ghi lại các nhật ký chẩn đoán chạy ngầm không cần thiết để tiết kiệm tài nguyên CPU/Ổ cứng.</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableCortana.Name" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableCortana.Name" xml:space="preserve">
<value>Vô hiệu hóa Cortana &amp; Tìm kiếm</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableCortana.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableCortana.ShortDescription" xml:space="preserve">
<value>Tắt trợ lý ảo Cortana và ngăn Windows Search tìm kiếm trực tuyến để có kết quả nhanh hơn.</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableCopilot.Name" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableCopilot.Name" xml:space="preserve">
<value>Vô hiệu hóa Windows Copilot</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableCopilot.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableCopilot.ShortDescription" xml:space="preserve">
<value>Gỡ bỏ trợ lý AI Copilot khỏi thanh tác vụ và hệ thống để tiết kiệm dung lượng RAM.</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.Name" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.Name" xml:space="preserve">
<value>Vô hiệu hóa quảng cáo &amp; gợi ý</value>
</data>
- <data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.SecurityAndPrivacy.DisableContentDeliveryManager.ShortDescription" xml:space="preserve">
<value>Chặn Windows tự động cài đặt ứng dụng quảng cáo và gợi ý nội dung trên màn hình Start.</value>
</data>
- <data name="Optimizer.BloatwareAndServices.DisablePreinstalledApps.Name" xml:space="preserve">
+ <data name="Optimizer.BloatwareAndServices.DisablePreinstalledApps.Name" xml:space="preserve">
<value>Chặn ứng dụng rác cài sẵn</value>
</data>
- <data name="Optimizer.BloatwareAndServices.DisablePreinstalledApps.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.BloatwareAndServices.DisablePreinstalledApps.ShortDescription" xml:space="preserve">
<value>Chặn Windows tự động cài app OEM/bundled và “suggested apps”, giúp máy sạch bloatware hơn (đặc biệt sau cài mới/reset).</value>
</data>
- <data name="Optimizer.BloatwareAndServices.ConfigureServices.Name" xml:space="preserve">
+ <data name="Optimizer.BloatwareAndServices.ConfigureServices.Name" xml:space="preserve">
<value>Tối ưu hóa các dịch vụ hệ thống</value>
</data>
- <data name="Optimizer.BloatwareAndServices.ConfigureServices.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.BloatwareAndServices.ConfigureServices.ShortDescription" xml:space="preserve">
<value>Điều chỉnh các dịch vụ chạy ngầm để giải phóng tài nguyên mà vẫn đảm bảo tính năng cần thiết.</value>
</data>
- <data name="Optimizer.BloatwareAndServices.ConfigureServices.Progress.ChangeServiceStartupType" xml:space="preserve">
+ <data name="Optimizer.BloatwareAndServices.ConfigureServices.Progress.ChangeServiceStartupType"
+ xml:space="preserve">
<value>Đang đặt kiểu khởi động cho dịch vụ {0} thành {1}...</value>
</data>
- <data name="Optimizer.UI.Tags.Display" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Display" xml:space="preserve">
<value>Màn hình</value>
</data>
- <data name="Optimizer.UI.Tags.Visual" xml:space="preserve">
+ <data name="Optimizer.UI.Tags.Visual" xml:space="preserve">
<value>Giao diện</value>
</data>
- <data name="Optimizer.Gpu" xml:space="preserve">
+ <data name="Optimizer.Gpu" xml:space="preserve">
<value>GPU</value>
</data>
- <data name="Optimizer.UserExperience" xml:space="preserve">
+ <data name="Optimizer.UserExperience" xml:space="preserve">
<value>Trải nghiệm người dùng</value>
</data>
- <data name="Optimizer.Gpu.AmdDisableUlps.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisableUlps.Name" xml:space="preserve">
<value>Vô hiệu hóa AMD ULPS</value>
</data>
- <data name="Optimizer.Gpu.AmdDisableUlps.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisableUlps.ShortDescription" xml:space="preserve">
<value>Tắt chế độ siêu tiết kiệm điện của AMD để tránh hiện tượng GPU bị khựng hoặc trễ khi thức dậy.</value>
</data>
- <data name="Optimizer.Gpu.AmdDisablePowerGating.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisablePowerGating.Name" xml:space="preserve">
<value>Tắt AMD Power Gating</value>
</data>
- <data name="Optimizer.Gpu.AmdDisablePowerGating.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisablePowerGating.ShortDescription" xml:space="preserve">
<value>Duy trì hiệu năng GPU ổn định bằng cách ngăn việc tự động ngắt nguồn các thành phần bên trong.</value>
</data>
- <data name="Optimizer.Gpu.AmdDisableVideoClockGating.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisableVideoClockGating.Name" xml:space="preserve">
<value>Tắt AMD Video Clock Gating</value>
</data>
- <data name="Optimizer.Gpu.AmdDisableVideoClockGating.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisableVideoClockGating.ShortDescription" xml:space="preserve">
<value>Tăng cường độ ổn định cho quá trình xử lý video bằng cách giữ xung nhịp engine video luôn sẵn sàng.</value>
</data>
- <data name="Optimizer.Gpu.AmdDisableAspm.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisableAspm.Name" xml:space="preserve">
<value>Vô hiệu hóa AMD ASPM</value>
</data>
- <data name="Optimizer.Gpu.AmdDisableAspm.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.AmdDisableAspm.ShortDescription" xml:space="preserve">
<value>Giảm độ trễ giao tiếp PCIe cho card đồ họa AMD, giúp tăng tốc độ phản hồi.</value>
</data>
- <data name="Optimizer.Gpu.NvidiaDisableDynamicPstate.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.NvidiaDisableDynamicPstate.Name" xml:space="preserve">
<value>Khóa trạng thái năng lượng NVIDIA</value>
</data>
- <data name="Optimizer.Gpu.NvidiaDisableDynamicPstate.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.NvidiaDisableDynamicPstate.ShortDescription" xml:space="preserve">
<value>Ngăn NVIDIA GPU tự động thay đổi mức năng lượng để duy trì mức hiệu năng nhất quán nhất.</value>
</data>
- <data name="Optimizer.Gpu.NvidiaDisableAsyncPstates.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.NvidiaDisableAsyncPstates.Name" xml:space="preserve">
<value>Vô hiệu hóa Async P-States</value>
</data>
- <data name="Optimizer.Gpu.NvidiaDisableAsyncPstates.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.NvidiaDisableAsyncPstates.ShortDescription" xml:space="preserve">
<value>Tắt việc chuyển đổi trạng thái hiệu năng không đồng bộ để đạt được sự ổn định cao nhất.</value>
</data>
- <data name="Optimizer.Gpu.IntelDisableAsyncFlips.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.IntelDisableAsyncFlips.Name" xml:space="preserve">
<value>Bật đồng bộ hình ảnh Intel</value>
</data>
- <data name="Optimizer.Gpu.IntelDisableAsyncFlips.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.IntelDisableAsyncFlips.ShortDescription" xml:space="preserve">
<value>Sử dụng cơ chế làm mới khung hình đồng bộ để giảm độ trễ hiển thị và hạn chế xé hình.</value>
</data>
- <data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.Name" xml:space="preserve">
<value>Vô hiệu hóa Adaptive V-Sync</value>
</data>
- <data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.IntelDisableAdaptiveVsync.ShortDescription" xml:space="preserve">
<value>Duy trì thời gian xuất khung hình ổn định bằng cách tắt tính năng V-Sync thích ứng của Intel.</value>
</data>
- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.Name" xml:space="preserve">
<value>Tắt Tin tức &amp; Sở thích</value>
</data>
- <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableTaskbarNewsAndInterests.ShortDescription" xml:space="preserve">
<value>Gỡ bỏ tiện ích tin tức trên thanh tác vụ để tập trung hơn và giảm tải cho hệ thống.</value>
</data>
- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.Name" xml:space="preserve">
<value>Ẩn các nút không dùng trên Taskbar</value>
</data>
- <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableTaskbarExtraButtons.ShortDescription" xml:space="preserve">
<value>Dọn dẹp thanh tác vụ bằng cách ẩn các nút Widgets, Chat và Task View.</value>
</data>
- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.Name" xml:space="preserve">
<value>Tắt Tìm kiếm &amp; Bing trên Taskbar</value>
</data>
- <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableTaskbarSearchAndBing.ShortDescription" xml:space="preserve">
<value>Gỡ bỏ hộp tìm kiếm và tắt kết quả từ Bing để thanh tác vụ và menu Start sạch sẽ hơn.</value>
</data>
- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.Name" xml:space="preserve">
<value>Xóa Meet Now &amp; People</value>
</data>
- <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.RemoveMeetNowAndPeople.ShortDescription" xml:space="preserve">
<value>Gỡ bỏ các biểu tượng Meet Now và People khỏi thanh hệ thống để giảm sự lộn xộn.</value>
</data>
- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.EnableTaskbarEndTask.Name" xml:space="preserve">
<value>Bật tính năng "Kết thúc tác vụ"</value>
</data>
- <data name="Optimizer.UserExperience.EnableTaskbarEndTask.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.EnableTaskbarEndTask.ShortDescription" xml:space="preserve">
<value>Cho phép nhanh chóng tắt ứng dụng bị treo ngay từ thanh tác vụ mà không cần mở Task Manager.</value>
</data>
- <data name="Optimizer.UserExperience.EnableDarkMode.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.EnableDarkMode.Name" xml:space="preserve">
<value>Kích hoạt Chế độ tối (Dark Mode)</value>
</data>
- <data name="Optimizer.UserExperience.EnableDarkMode.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.EnableDarkMode.ShortDescription" xml:space="preserve">
<value>Chuyển hệ điều hành và ứng dụng sang giao diện tối giúp dịu mắt và tiết kiệm điện.</value>
</data>
- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.Name" xml:space="preserve">
<value>Vô hiệu hóa thông báo phiền hà</value>
</data>
- <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableExplorerAndSystemNotifications.ShortDescription" xml:space="preserve">
<value>Chặn các thông báo quảng cáo, mẹo sử dụng và thông báo không cần thiết từ Windows.</value>
</data>
- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.Name" xml:space="preserve">
<value>Hiện đuôi tệp &amp; tệp ẩn</value>
</data>
- <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.ShowFileExtensionsAndHiddenFiles.ShortDescription" xml:space="preserve">
<value>Hiển thị đầy đủ phần mở rộng tệp và các tệp tin ẩn để thuận tiện cho việc quản lý hệ thống.</value>
</data>
- <data name="Optimizer.UserExperience.EnableClassicContextMenu.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.EnableClassicContextMenu.Name" xml:space="preserve">
<value>Sử dụng Menu chuột phải cổ điển</value>
</data>
- <data name="Optimizer.UserExperience.EnableClassicContextMenu.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.EnableClassicContextMenu.ShortDescription" xml:space="preserve">
<value>Khôi phục menu chuột phải đầy đủ kiểu Windows 10 trên Windows 11.</value>
</data>
- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.Name" xml:space="preserve">
<value>Tăng tốc Explorer &amp; Menu</value>
</data>
- <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.SpeedUpExplorerAndMenus.ShortDescription" xml:space="preserve">
<value>Loại bỏ thời gian trễ khi mở thư mục và hiển thị menu để giao diện phản hồi tức thì.</value>
</data>
- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.Name" xml:space="preserve">
<value>Hiển thị giây trên đồng hồ</value>
</data>
- <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.ShowSecondsInSystemClock.ShortDescription" xml:space="preserve">
<value>Thêm hiển thị kim giây vào đồng hồ hệ thống trên thanh tác vụ để theo dõi giờ chính xác.</value>
</data>
- <data name="Optimizer.UserExperience.DisableVisualEffects.Name" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableVisualEffects.Name" xml:space="preserve">
<value>Tắt hiệu ứng chuyển động</value>
</data>
- <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.UserExperience.DisableVisualEffects.ShortDescription" xml:space="preserve">
<value>Vô hiệu hóa các hiệu ứng cửa sổ, bóng đổ và độ trong suốt để tăng tối đa tốc độ giao diện.</value>
</data>
- <data name="Settings.Optimize.ShellTimeout.Warning" xml:space="preserve">
+ <data name="Settings.Optimize.ShellTimeout.Warning" xml:space="preserve">
<value>ĐỪNG thay đổi trừ khi bạn biết chính xác mình đang làm gì</value>
</data>
- <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.DownloadFailed" xml:space="preserve">
+ <data name="Optimizer.PowerManagement.InstallOptimizerDuckPowerPlan.Error.DownloadFailed" xml:space="preserve">
<value>Không thể tải xuống power plan của optimizerDuck.</value>
</data>
- <data name="Settings.About.Acknowledgements.Title" xml:space="preserve">
+ <data name="Settings.About.Acknowledgements.Title" xml:space="preserve">
<value>Ghi nhận đóng góp</value>
</data>
- <data name="Settings.About.Acknowledgements.Description" xml:space="preserve">
+ <data name="Settings.About.Acknowledgements.Description" xml:space="preserve">
<value>optimizerDuck được xây dựng nhờ các phần mềm và tài nguyên nguồn mở.</value>
</data>
- <data name="Settings.About.LearnMore.Acknowledgements" xml:space="preserve">
+ <data name="Settings.About.LearnMore.Acknowledgements" xml:space="preserve">
<value>Ghi nhận đóng góp</value>
</data>
- <data name="RestorePoint.Title" xml:space="preserve">
+ <data name="RestorePoint.Title" xml:space="preserve">
<value>Phục hồi hệ thống</value>
</data>
- <data name="RestorePointDialog.Description" xml:space="preserve">
+ <data name="RestorePointDialog.Description" xml:space="preserve">
<value>Restore Point giúp bạn đưa hệ thống trở về trạng thái trước khi thay đổi.
Đây là cách an toàn nhất để bảo vệ máy tính của bạn khi tối ưu hóa.</value>
</data>
- <data name="RestorePointDialog.Help" xml:space="preserve">
+ <data name="RestorePointDialog.Help" xml:space="preserve">
<value>Ứng dụng sẽ tự động kích hoạt và tạo một điểm khôi phục mới mang tên "optimizerDuck...".
Hãy yên tâm rằng hệ thống của bạn luôn có đường lui nếu có sự cố xảy ra.</value>
</data>
- <data name="RestorePoint.Snackbar.Error.Title" xml:space="preserve">
+ <data name="RestorePoint.Snackbar.Error.Title" xml:space="preserve">
<value>Không thể tạo hoặc bật System Restore.</value>
</data>
- <data name="RestorePoint.Snackbar.Error.Message" xml:space="preserve">
+ <data name="RestorePoint.Snackbar.Error.Message" xml:space="preserve">
<value>Lỗi khi tạo hoặc bật System Restore, bạn hãy thử tạo thủ công.</value>
</data>
- <data name="RestorePoint.Snackbar.Warning.LimitReached" xml:space="preserve">
+ <data name="RestorePoint.Snackbar.Warning.LimitReached" xml:space="preserve">
<value>Một điểm khôi phục đã được tạo trong vòng 24 giờ qua.</value>
</data>
- <data name="RestorePoint.Progress.Creating" xml:space="preserve">
+ <data name="RestorePoint.Progress.Creating" xml:space="preserve">
<value>Đang tạo điểm khôi phục...</value>
</data>
- <data name="RestorePoint.Progress.Enabling" xml:space="preserve">
+ <data name="RestorePoint.Progress.Enabling" xml:space="preserve">
<value>Đang mở System Restore...</value>
</data>
- <data name="RestorePoint.Progress.Retrying" xml:space="preserve">
+ <data name="RestorePoint.Progress.Retrying" xml:space="preserve">
<value>Đang thử tạo lại điểm khôi phục...</value>
</data>
- <data name="RestorePoint.Snackbar.Success.Title" xml:space="preserve">
+ <data name="RestorePoint.Snackbar.Success.Title" xml:space="preserve">
<value>Tạo thành công điểm khôi phục</value>
</data>
- <data name="RestorePoint.Snackbar.Success.Message" xml:space="preserve">
+ <data name="RestorePoint.Snackbar.Success.Message" xml:space="preserve">
<value>Điểm khôi phục đã được tạo với tên: {0}.</value>
</data>
- <data name="Snackbar.OpenLinkFailed.Title" xml:space="preserve">
+ <data name="Snackbar.OpenLinkFailed.Title" xml:space="preserve">
<value>Không thể mở đường dẫn</value>
</data>
- <data name="Snackbar.OpenLinkFailed.Message" xml:space="preserve">
+ <data name="Snackbar.OpenLinkFailed.Message" xml:space="preserve">
<value>Lỗi khi mở đường dẫn, bạn hãy kiểm tra log.</value>
</data>
- <data name="Snackbar.OpenFailed.Message" xml:space="preserve">
+ <data name="Snackbar.OpenFailed.Message" xml:space="preserve">
<value>Lỗi khi mở thư mục hoặc tệp, hãy thử kiểm tra log.</value>
</data>
- <data name="Snackbar.OpenFailed.Title" xml:space="preserve">
+ <data name="Snackbar.OpenFailed.Title" xml:space="preserve">
<value>Không thể mở thư mục hoặc tệp</value>
</data>
- <data name="Button.ViewLatestRelease" xml:space="preserve">
+ <data name="Button.ViewLatestRelease" xml:space="preserve">
<value>Xem bản phát hành mới nhất</value>
</data>
- <data name="BloatwareDialog.Title" xml:space="preserve">
+ <data name="BloatwareDialog.Title" xml:space="preserve">
<value>Đang gỡ {0} Gói AppX</value>
</data>
- <data name="BloatwareDialog.Removing" xml:space="preserve">
+ <data name="BloatwareDialog.Removing" xml:space="preserve">
<value>Đang gỡ {0} ({1}/{2})</value>
</data>
- <data name="Bloatware.Header.Title" xml:space="preserve">
+ <data name="Bloatware.Header.Title" xml:space="preserve">
<value>Bloatware</value>
</data>
- <data name="Bloatware.Menu.Remove" xml:space="preserve">
+ <data name="Bloatware.Menu.Remove" xml:space="preserve">
<value>Gỡ ({0})</value>
</data>
- <data name="Bloatware.Menu.Refresh" xml:space="preserve">
+ <data name="Bloatware.Menu.Refresh" xml:space="preserve">
<value>Làm mới</value>
</data>
- <data name="Bloatware.Empty.Title" xml:space="preserve">
+ <data name="Bloatware.Empty.Title" xml:space="preserve">
<value>Không tìm thấy bất kì một ứng dụng nào ¯\_(ツ)_/¯</value>
</data>
- <data name="Bloatware.Empty.Description" xml:space="preserve">
+ <data name="Bloatware.Empty.Description" xml:space="preserve">
<value>optimizerDuck không tìm thấy gói AppX nào có thể xóa. mọi thứ trống không như hư vô...</value>
</data>
- <data name="Bloatware.Loading" xml:space="preserve">
+ <data name="Bloatware.Loading" xml:space="preserve">
<value>Đang tìm kiếm ứng dụng có thể gỡ…</value>
</data>
- <data name="Bloatware.Loading.Hint" xml:space="preserve">
+ <data name="Bloatware.Loading.Hint" xml:space="preserve">
<value>Quá trình này có thể mất một lúc khi ứng dụng quét các gói đã được cài đặt.</value>
</data>
- <data name="Sidebar.Bloatware" xml:space="preserve">
+ <data name="Sidebar.Bloatware" xml:space="preserve">
<value>Bloatware</value>
</data>
- <data name="BloatwareDialog.Confirmation.Title" xml:space="preserve">
+ <data name="BloatwareDialog.Confirmation.Title" xml:space="preserve">
<value>Bạn có muốn xóa {0} ứng dụng?</value>
</data>
- <data name="BloatwareDialog.Confirmation.Message" xml:space="preserve">
+ <data name="BloatwareDialog.Confirmation.Message" xml:space="preserve">
<value>Bạn chuẩn bị sẽ xóa: {0}</value>
</data>
- <data name="Settings.Bloatware.Header" xml:space="preserve">
+ <data name="Settings.Bloatware.Header" xml:space="preserve">
<value>Bloatware</value>
</data>
- <data name="Settings.Bloatware.RemoveProvisioned.Title" xml:space="preserve">
+ <data name="Settings.Bloatware.RemoveProvisioned.Title" xml:space="preserve">
<value>Xóa gói Provisioned</value>
</data>
- <data name="Settings.Bloatware.RemoveProvisioned.Description" xml:space="preserve">
+ <data name="Settings.Bloatware.RemoveProvisioned.Description" xml:space="preserve">
<value>Khi xóa gói AppX đã cài đặt, cũng xóa luôn các gói Provisioned tương ứng để ngăn tự động cài lại cho người dùng mới.</value>
</data>
- <data name="Dashboard.UpdateInfoBar.Message" xml:space="preserve">
+ <data name="Dashboard.UpdateInfoBar.Message" xml:space="preserve">
<value>Đã có phiên bản optimizerDuck (v{0})!
Cập nhật ngay để trải nghiệm các tính năng mới, cải tiến và sửa lỗi mới nhất.</value>
</data>
- <data name="Optimizer.Performance.DisableFullscreenOptimizations.Name" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableFullscreenOptimizations.Name" xml:space="preserve">
<value>Tắt tối ưu hóa toàn màn hình</value>
</data>
- <data name="Optimizer.Performance.DisableFullscreenOptimizations.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Performance.DisableFullscreenOptimizations.ShortDescription" xml:space="preserve">
<value>Vô hiệu hóa tối ưu hóa toàn màn hình của Windows (FSO) để loại bỏ độ trễ đầu vào, giật hình và chế độ cửa sổ không viền bị ép buộc trong game.</value>
</data>
- <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.Name" xml:space="preserve">
+ <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.Name" xml:space="preserve">
<value>Bật lập lịch GPU tăng tốc phần cứng</value>
</data>
- <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.ShortDescription" xml:space="preserve">
+ <data name="Optimizer.Gpu.EnableHardwareAcceleratedGpuScheduling.ShortDescription" xml:space="preserve">
<value>Cho phép GPU trực tiếp quản lý bộ nhớ video, giảm tải CPU và giảm độ trễ hiển thị. Yêu cầu driver GPU tương thích và khởi động lại.</value>
</data>
- <data name="Common.Search.Placeholder" xml:space="preserve">
+ <data name="Common.Search.Placeholder" xml:space="preserve">
<value>Tìm kiếm...</value>
</data>
- <data name="Common.Filter.All" xml:space="preserve">
+ <data name="Common.Filter.All" xml:space="preserve">
<value>Tất cả</value>
</data>
- <data name="Common.SortBy.Default" xml:space="preserve">
+ <data name="Common.SortBy.Default" xml:space="preserve">
<value>Mặc định</value>
</data>
- <data name="Common.SortBy.Name" xml:space="preserve">
+ <data name="Common.SortBy.Name" xml:space="preserve">
<value>Tên</value>
</data>
- <data name="Common.SortBy.Risk" xml:space="preserve">
+ <data name="Common.SortBy.Risk" xml:space="preserve">
<value>Độ rủi ro</value>
</data>
- <data name="Common.SortBy.Publisher" xml:space="preserve">
+ <data name="Common.SortBy.Publisher" xml:space="preserve">
<value>Nhà phát hành</value>
</data>
- <data name="Common.SortBy.Size" xml:space="preserve">
+ <data name="Common.SortBy.Size" xml:space="preserve">
<value>Kích thước</value>
</data>
- <data name="Common.SortBy.Path" xml:space="preserve">
+ <data name="Common.SortBy.Path" xml:space="preserve">
<value>Đường dẫn</value>
</data>
- <data name="Optimizer.Menu.ApplyAllSafe" xml:space="preserve">
+ <data name="Optimizer.Menu.ApplyAllSafe" xml:space="preserve">
<value>Áp dụng tất cả an toàn</value>
</data>
- <data name="Optimizer.Menu.ApplyAll" xml:space="preserve">
+ <data name="Optimizer.Menu.ApplyAll" xml:space="preserve">
<value>Áp dụng tất cả</value>
</data>
- <data name="Optimizer.Menu.ViewSource" xml:space="preserve">
+ <data name="Optimizer.Menu.ViewSource" xml:space="preserve">
<value>Xem mã nguồn</value>
</data>
- <data name="Bloatware.Menu.SelectAllSafe" xml:space="preserve">
+ <data name="Bloatware.Menu.SelectAllSafe" xml:space="preserve">
<value>Chọn tất cả an toàn</value>
</data>
- <data name="Bloatware.Menu.UnselectAllSafe" xml:space="preserve">
+ <data name="Bloatware.Menu.UnselectAllSafe" xml:space="preserve">
<value>Bỏ chọn tất cả an toàn</value>
</data>
- <data name="Optimizer.Menu.HideApplied" xml:space="preserve">
+ <data name="Optimizer.Menu.HideApplied" xml:space="preserve">
<value>Ẩn đã áp dụng</value>
</data>
- <data name="Optimizer.Menu.ApplyMenu" xml:space="preserve">
+ <data name="Optimizer.Menu.ApplyMenu" xml:space="preserve">
<value>Áp dụng</value>
</data>
- <data name="Optimizer.Menu.BatchApply.Title" xml:space="preserve">
+ <data name="Optimizer.Menu.BatchApply.Title" xml:space="preserve">
<value>Đang áp dụng các tối ưu</value>
</data>
- <data name="Bloatware.Search.NoResults" xml:space="preserve">
+ <data name="Bloatware.Search.NoResults" xml:space="preserve">
<value>Không tìm thấy kết quả. Hãy thử từ khóa hoặc bộ lọc khác.</value>
</data>
- <data name="Common.Filter" xml:space="preserve">
+ <data name="Common.Filter" xml:space="preserve">
<value>Bộ lọc</value>
</data>
- <data name="Common.SortBy" xml:space="preserve">
+ <data name="Common.SortBy" xml:space="preserve">
<value>Sắp xếp theo</value>
</data>
- <data name="Sidebar.DiskCleanup" xml:space="preserve">
+ <data name="Sidebar.DiskCleanup" xml:space="preserve">
<value>Dọn ổ đĩa</value>
</data>
- <data name="DiskCleanup.Header.Title" xml:space="preserve">
+ <data name="DiskCleanup.Header.Title" xml:space="preserve">
<value>Dọn ổ đĩa</value>
</data>
- <data name="DiskCleanup.Header.Description" xml:space="preserve">
+ <data name="DiskCleanup.Header.Description" xml:space="preserve">
<value>Giải phóng dung lượng ổ đĩa bằng cách xóa các tệp tạm và bộ nhớ đệm</value>
</data>
- <data name="DiskCleanup.TotalSpace" xml:space="preserve">
+ <data name="DiskCleanup.TotalSpace" xml:space="preserve">
<value>Tổng dung lượng có thể giải phóng</value>
</data>
- <data name="DiskCleanup.Button.Scan" xml:space="preserve">
+ <data name="DiskCleanup.Button.Scan" xml:space="preserve">
<value>Quét</value>
</data>
- <data name="DiskCleanup.Button.SelectAll" xml:space="preserve">
+ <data name="DiskCleanup.Button.SelectAll" xml:space="preserve">
<value>Chọn tất cả</value>
</data>
- <data name="DiskCleanup.Button.DeselectAll" xml:space="preserve">
+ <data name="DiskCleanup.Button.DeselectAll" xml:space="preserve">
<value>Bỏ chọn tất cả</value>
</data>
- <data name="DiskCleanup.Scanning" xml:space="preserve">
+ <data name="DiskCleanup.Scanning" xml:space="preserve">
<value>Đang quét...</value>
</data>
- <data name="DiskCleanup.Loading" xml:space="preserve">
+ <data name="DiskCleanup.Loading" xml:space="preserve">
<value>Đang tải danh sách dọn dẹp...</value>
</data>
- <data name="DiskCleanup.Complete.Title" xml:space="preserve">
+ <data name="DiskCleanup.Complete.Title" xml:space="preserve">
<value>Dọn dẹp hoàn tất</value>
</data>
- <data name="DiskCleanup.Complete.Message" xml:space="preserve">
+ <data name="DiskCleanup.Complete.Message" xml:space="preserve">
<value>Đã giải phóng {0} dung lượng ổ đĩa</value>
</data>
- <data name="DiskCleanup.Error.Title" xml:space="preserve">
+ <data name="DiskCleanup.Error.Title" xml:space="preserve">
<value>Lỗi dọn dẹp</value>
</data>
- <data name="DiskCleanup.Error.Message" xml:space="preserve">
+ <data name="DiskCleanup.Error.Message" xml:space="preserve">
<value>Một số tệp không thể xóa. Chúng có thể đang được sử dụng bởi chương trình khác.</value>
</data>
- <data name="DiskCleanup.Item.TempFiles" xml:space="preserve">
+ <data name="DiskCleanup.Item.TempFiles" xml:space="preserve">
<value>Tệp tạm thời</value>
</data>
- <data name="DiskCleanup.Item.TempFiles.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.TempFiles.Description" xml:space="preserve">
<value>Tệp tạm thời của người dùng được tạo bởi các ứng dụng</value>
</data>
- <data name="DiskCleanup.Item.SystemTemp" xml:space="preserve">
+ <data name="DiskCleanup.Item.SystemTemp" xml:space="preserve">
<value>Tệp tạm hệ thống</value>
</data>
- <data name="DiskCleanup.Item.SystemTemp.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.SystemTemp.Description" xml:space="preserve">
<value>Tệp tạm thời của hệ thống Windows</value>
</data>
- <data name="DiskCleanup.Item.WindowsUpdate" xml:space="preserve">
+ <data name="DiskCleanup.Item.WindowsUpdate" xml:space="preserve">
<value>Bộ nhớ đệm Windows Update</value>
</data>
- <data name="DiskCleanup.Item.WindowsUpdate.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.WindowsUpdate.Description" xml:space="preserve">
<value>Tệp cập nhật Windows đã tải về không còn cần thiết</value>
</data>
- <data name="DiskCleanup.Item.Prefetch" xml:space="preserve">
+ <data name="DiskCleanup.Item.Prefetch" xml:space="preserve">
<value>Tệp Prefetch</value>
</data>
- <data name="DiskCleanup.Item.Prefetch.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.Prefetch.Description" xml:space="preserve">
<value>Dữ liệu prefetch giúp tăng tốc khởi chạy ứng dụng</value>
</data>
- <data name="DiskCleanup.Item.Thumbnails" xml:space="preserve">
+ <data name="DiskCleanup.Item.Thumbnails" xml:space="preserve">
<value>Bộ nhớ đệm hình thu nhỏ</value>
</data>
- <data name="DiskCleanup.Item.Thumbnails.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.Thumbnails.Description" xml:space="preserve">
<value>Hình thu nhỏ được lưu trong bộ nhớ đệm cho Explorer</value>
</data>
- <data name="DiskCleanup.Item.RecycleBin" xml:space="preserve">
+ <data name="DiskCleanup.Item.RecycleBin" xml:space="preserve">
<value>Thùng rác</value>
</data>
- <data name="DiskCleanup.Item.RecycleBin.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.RecycleBin.Description" xml:space="preserve">
<value>Các tệp đã xóa vẫn còn trong Thùng rác</value>
</data>
- <data name="DiskCleanup.Item.ErrorReports" xml:space="preserve">
+ <data name="DiskCleanup.Item.ErrorReports" xml:space="preserve">
<value>Báo cáo lỗi</value>
</data>
- <data name="DiskCleanup.Item.ErrorReports.Description" xml:space="preserve">
+ <data name="DiskCleanup.Item.ErrorReports.Description" xml:space="preserve">
<value>Báo cáo lỗi Windows và tệp crash dump</value>
</data>
- <data name="Dashboard.SystemInfo.Os.DeviceType.Laptop" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Os.DeviceType.Laptop" xml:space="preserve">
<value>Máy tính xách tay</value>
</data>
- <data name="Dashboard.SystemInfo.Os.DeviceType.Desktop" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Os.DeviceType.Desktop" xml:space="preserve">
<value>Máy tính để bàn</value>
</data>
- <data name="Dashboard.SystemInfo.Os.Build" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Os.Build" xml:space="preserve">
<value>Bản dựng {0}</value>
</data>
- <data name="Bloatware.Header.Description" xml:space="preserve">
+ <data name="Bloatware.Header.Description" xml:space="preserve">
<value>Quản lý và gỡ bỏ các ứng dụng cài sẵn không cần thiết</value>
</data>
- <data name="Dashboard.Header.Description" xml:space="preserve">
+ <data name="Dashboard.Header.Description" xml:space="preserve">
<value>Tổng quan hệ thống và thao tác nhanh</value>
</data>
- <data name="Dashboard.SystemInfo.Header" xml:space="preserve">
+ <data name="Dashboard.SystemInfo.Header" xml:space="preserve">
<value>Thông tin hệ thống</value>
</data>
- <data name="DiskCleanup.ItemsSelected" xml:space="preserve">
+ <data name="DiskCleanup.ItemsSelected" xml:space="preserve">
<value>{0} (đã chọn {1} mục)</value>
</data>
- <data name="DiskCleanup.Button.CleanSelected" xml:space="preserve">
+ <data name="DiskCleanup.Button.CleanSelected" xml:space="preserve">
<value>Dọn dẹp đã chọn ({0})</value>
</data>
- <data name="DiskCleanup.EmptySize" xml:space="preserve">
+ <data name="DiskCleanup.EmptySize" xml:space="preserve">
<value>Trống</value>
</data>
- <data name="DiskCleanup.FilesCount" xml:space="preserve">
+ <data name="DiskCleanup.FilesCount" xml:space="preserve">
<value>{0} tệp</value>
</data>
- <data name="DiskCleanup.ItemsAndFilesSelected" xml:space="preserve">
+ <data name="DiskCleanup.ItemsAndFilesSelected" xml:space="preserve">
<value>Đã chọn {0} • {1} mục • {2} tệp</value>
</data>
- <data name="Settings.About.NeedHelp.Title" xml:space="preserve">
+ <data name="Settings.About.NeedHelp.Title" xml:space="preserve">
<value>Cần hỗ trợ?</value>
</data>
- <data name="Sidebar.StartupManager" xml:space="preserve">
+ <data name="Sidebar.StartupManager" xml:space="preserve">
<value>Quản Lý Khởi Động</value>
</data>
- <data name="Sidebar.ScheduledTasks" xml:space="preserve">
+ <data name="Sidebar.ScheduledTasks" xml:space="preserve">
<value>Tác Vụ Đã Lên Lịch</value>
</data>
- <data name="StartupManager.Header.Title" xml:space="preserve">
+ <data name="StartupManager.Header.Title" xml:space="preserve">
<value>Quản Lý Khởi Động</value>
</data>
- <data name="StartupManager.Header.Description" xml:space="preserve">
+ <data name="StartupManager.Header.Description" xml:space="preserve">
<value>Quản lý các ứng dụng và tác vụ tự động chạy khi Windows khởi động</value>
</data>
- <data name="OptimizationDetailsDialog.Other.OpenRevertFile.Description" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Other.OpenRevertFile.Description" xml:space="preserve">
<value>Mở tệp JSON gốc chứa dữ liệu khôi phục cho tính năng tối ưu hóa này.</value>
</data>
- <data name="OptimizationDetailsDialog.Other.OpenRevertFile.Title" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Other.OpenRevertFile.Title" xml:space="preserve">
<value>Mở dữ liệu khôi phục</value>
</data>
- <data name="OptimizationDetailsDialog.Other.ViewSource.Description" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Other.ViewSource.Description" xml:space="preserve">
<value>Mở mã nguồn của tính năng tối ưu hóa này trên trình duyệt của bạn.</value>
</data>
- <data name="OptimizationDetailsDialog.Other.ViewSource.Title" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Other.ViewSource.Title" xml:space="preserve">
<value>Xem mã nguồn trên GitHub</value>
</data>
- <data name="OptimizationDetailsDialog.Risk" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Risk" xml:space="preserve">
<value>Mức độ rủi ro</value>
</data>
- <data name="OptimizationDetailsDialog.TechnicalDetails" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.TechnicalDetails" xml:space="preserve">
<value>Chi tiết kỹ thuật</value>
</data>
- <data name="OptimizationDetailsDialog.Id" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Id" xml:space="preserve">
<value>ID Tối ưu hóa</value>
</data>
- <data name="OptimizationDetailsDialog.Class" xml:space="preserve">
+ <data name="OptimizationDetailsDialog.Class" xml:space="preserve">
<value>Tên Lớp (Class)</value>
</data>
- <data name="StartupManager.Apps.Title" xml:space="preserve">
+ <data name="StartupManager.Apps.Title" xml:space="preserve">
<value>Ứng dụng Khởi động</value>
</data>
- <data name="StartupManager.Tasks.Title" xml:space="preserve">
+ <data name="StartupManager.Tasks.Title" xml:space="preserve">
<value>Tác vụ Lên lịch (Logon)</value>
</data>
- <data name="StartupManager.Tasks.HideMicrosoft" xml:space="preserve">
+ <data name="StartupManager.Tasks.HideMicrosoft" xml:space="preserve">
<value>Ẩn tác vụ Microsoft</value>
</data>
- <data name="StartupManager.Loading" xml:space="preserve">
+ <data name="StartupManager.Loading" xml:space="preserve">
<value>Đang quét các mục khởi động...</value>
</data>
- <data name="StartupManager.Loading.Hint" xml:space="preserve">
+ <data name="StartupManager.Loading.Hint" xml:space="preserve">
<value>Quá trình này có thể mất một lúc khi ứng dụng quét registry và thư mục khởi động.</value>
</data>
- <data name="StartupManager.Empty.Title" xml:space="preserve">
+ <data name="StartupManager.Empty.Title" xml:space="preserve">
<value>Không có mục khởi động</value>
</data>
- <data name="StartupManager.Empty.Description" xml:space="preserve">
+ <data name="StartupManager.Empty.Description" xml:space="preserve">
<value>Không tìm thấy ứng dụng hoặc tác vụ khởi động nào trên hệ thống này.</value>
</data>
- <data name="StartupManager.Menu.Refresh" xml:space="preserve">
+ <data name="StartupManager.Menu.Refresh" xml:space="preserve">
<value>Làm mới</value>
</data>
- <data name="Common.Toggle.On" xml:space="preserve">
+ <data name="Common.Toggle.On" xml:space="preserve">
<value>Bật</value>
</data>
- <data name="Common.Toggle.Off" xml:space="preserve">
+ <data name="Common.Toggle.Off" xml:space="preserve">
<value>Tắt</value>
</data>
- <data name="Common.Delete" xml:space="preserve">
+ <data name="Common.Delete" xml:space="preserve">
<value>Xóa</value>
</data>
- <data name="Common.Cancel" xml:space="preserve">
+ <data name="Common.Cancel" xml:space="preserve">
<value>Hủy</value>
</data>
- <data name="Common.SortBy.Status" xml:space="preserve">
+ <data name="Common.SortBy.Status" xml:space="preserve">
<value>Trạng thái</value>
</data>
- <data name="Common.Status.Applied" xml:space="preserve">
+ <data name="Common.Status.Applied" xml:space="preserve">
<value>Đã áp dụng</value>
</data>
- <data name="Common.SortBy.State" xml:space="preserve">
+ <data name="Common.SortBy.State" xml:space="preserve">
<value>Trạng thái</value>
</data>
- <data name="StartupManager.Menu.OpenSettings" xml:space="preserve">
+ <data name="StartupManager.Menu.OpenSettings" xml:space="preserve">
<value>Mở Cài đặt</value>
</data>
- <data name="ScheduledTasks.Header.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Header.Title" xml:space="preserve">
<value>Tác Vụ Đã Lên Lịch</value>
</data>
- <data name="ScheduledTasks.Header.Description" xml:space="preserve">
+ <data name="ScheduledTasks.Header.Description" xml:space="preserve">
<value>Xem và quản lý các tác vụ đã lên lịch trong Windows.</value>
</data>
- <data name="ScheduledTasks.Loading" xml:space="preserve">
+ <data name="ScheduledTasks.Loading" xml:space="preserve">
<value>Đang tải tác vụ đã lên lịch...</value>
</data>
- <data name="ScheduledTasks.HideMicrosoft" xml:space="preserve">
+ <data name="ScheduledTasks.Loading.Hint" xml:space="preserve">
+ <value>Quá trình này có thể tốn một ít thời gian trong khi quét các tác vụ...</value>
+ </data>
+ <data name="ScheduledTasks.HideMicrosoft" xml:space="preserve">
<value>Ẩn tác vụ Microsoft</value>
</data>
- <data name="ScheduledTasks.Menu.CreateTask" xml:space="preserve">
+ <data name="ScheduledTasks.Menu.CreateTask" xml:space="preserve">
<value>Tạo Tác Vụ</value>
</data>
- <data name="ScheduledTasks.Menu.OpenSettings" xml:space="preserve">
+ <data name="ScheduledTasks.Menu.OpenSettings" xml:space="preserve">
<value>Mở Trình Lập Lịch Tác Vụ</value>
</data>
- <data name="ScheduledTasks.Action.Details" xml:space="preserve">
+ <data name="ScheduledTasks.Action.Details" xml:space="preserve">
<value>Xem Chi Tiết</value>
</data>
- <data name="ScheduledTasks.Action.Run" xml:space="preserve">
+ <data name="ScheduledTasks.Action.Run" xml:space="preserve">
<value>Chạy</value>
</data>
- <data name="ScheduledTasks.Action.Stop" xml:space="preserve">
+ <data name="ScheduledTasks.Action.Stop" xml:space="preserve">
<value>Dừng</value>
</data>
- <data name="ScheduledTasks.Action.Delete" xml:space="preserve">
+ <data name="ScheduledTasks.Action.Delete" xml:space="preserve">
<value>Xóa</value>
</data>
- <data name="ScheduledTasks.Dialog.DeleteTitle" xml:space="preserve">
+ <data name="ScheduledTasks.Dialog.DeleteTitle" xml:space="preserve">
<value>Xóa Tác Vụ Đã Lên Lịch</value>
</data>
- <data name="ScheduledTasks.Dialog.DeleteMessage" xml:space="preserve">
+ <data name="ScheduledTasks.Dialog.DeleteMessage" xml:space="preserve">
<value>Bạn có chắc chắn muốn xóa tác vụ "{0}" không? Hành động này không thể hoàn tác.</value>
</data>
- <data name="ScheduledTasks.Details.Path" xml:space="preserve">
+ <data name="ScheduledTasks.Details.Path" xml:space="preserve">
<value>Đường Dẫn</value>
</data>
- <data name="ScheduledTasks.Details.Description" xml:space="preserve">
+ <data name="ScheduledTasks.Details.Description" xml:space="preserve">
<value>Mô Tả</value>
</data>
- <data name="ScheduledTasks.Details.Author" xml:space="preserve">
+ <data name="ScheduledTasks.Details.Author" xml:space="preserve">
<value>Tác Giả</value>
</data>
- <data name="ScheduledTasks.Details.State" xml:space="preserve">
+ <data name="ScheduledTasks.Details.State" xml:space="preserve">
<value>Trạng Thái</value>
</data>
- <data name="ScheduledTasks.Details.Triggers" xml:space="preserve">
+ <data name="ScheduledTasks.Details.Triggers" xml:space="preserve">
<value>Kích Hoạt</value>
</data>
- <data name="ScheduledTasks.Details.Action" xml:space="preserve">
+ <data name="ScheduledTasks.Details.Action" xml:space="preserve">
<value>Hành Động</value>
</data>
- <data name="ScheduledTasks.Details.LastRun" xml:space="preserve">
+ <data name="ScheduledTasks.Details.LastRun" xml:space="preserve">
<value>Lần Chạy Cuối</value>
</data>
- <data name="ScheduledTasks.Details.NextRun" xml:space="preserve">
+ <data name="ScheduledTasks.Details.NextRun" xml:space="preserve">
<value>Lần Chạy Tiếp Theo</value>
</data>
- <data name="ScheduledTasks.Details.LastResult" xml:space="preserve">
+ <data name="ScheduledTasks.Details.LastResult" xml:space="preserve">
<value>Kết Quả Cuối</value>
</data>
- <data name="ScheduledTasks.Details.Name" xml:space="preserve">
+ <data name="ScheduledTasks.Details.Name" xml:space="preserve">
<value>Tên</value>
</data>
- <data name="ScheduledTasks.Snackbar.Enabled.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Enabled.Title" xml:space="preserve">
<value>Tác Vụ Đã Bật</value>
</data>
- <data name="ScheduledTasks.Snackbar.Disabled.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Disabled.Title" xml:space="preserve">
<value>Tác Vụ Đã Tắt</value>
</data>
- <data name="ScheduledTasks.Snackbar.Toggle.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Toggle.Message" xml:space="preserve">
<value>{0} đã được cập nhật thành công.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Run.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Run.Title" xml:space="preserve">
<value>Tác Vụ Đã Khởi Chạy</value>
</data>
- <data name="ScheduledTasks.Snackbar.Run.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Run.Message" xml:space="preserve">
<value>{0} đang chạy.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Stop.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Stop.Title" xml:space="preserve">
<value>Tác Vụ Đã Dừng</value>
</data>
- <data name="ScheduledTasks.Snackbar.Stop.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Stop.Message" xml:space="preserve">
<value>{0} đã dừng.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Delete.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Delete.Title" xml:space="preserve">
<value>Tác Vụ Đã Xóa</value>
</data>
- <data name="ScheduledTasks.Snackbar.Delete.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Delete.Message" xml:space="preserve">
<value>{0} đã xóa.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Create.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Create.Title" xml:space="preserve">
<value>Tác Vụ Đã Tạo</value>
</data>
- <data name="ScheduledTasks.Snackbar.Create.Message" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Create.Message" xml:space="preserve">
<value>{0} đã tạo thành công.</value>
</data>
- <data name="ScheduledTasks.Snackbar.Error.Title" xml:space="preserve">
+ <data name="ScheduledTasks.Snackbar.Error.Title" xml:space="preserve">
<value>Lỗi</value>
</data>
- <data name="Settings.About.LearnMore.Website" xml:space="preserve">
+ <data name="Settings.About.LearnMore.Website" xml:space="preserve">
<value>Trang Web Chính Thức</value>
</data>
- <data name="Settings.About.NeedHelp.Description" xml:space="preserve">
+ <data name="Settings.About.NeedHelp.Description" xml:space="preserve">
<value>Nếu bạn cần hỗ trợ về tối ưu hoặc có bất kỳ thắc mắc nào, hãy tham gia cộng đồng của chúng tôi để được hỗ trợ nhanh chóng.</value>
</data>
- <data name="Settings.About.LearnMore.Community" xml:space="preserve">
+ <data name="Settings.About.LearnMore.Community" xml:space="preserve">
<value>Cộng đồng</value>
</data>
- <data name="ScheduledTasks.Error.TaskNotFound" xml:space="preserve">
+ <data name="ScheduledTasks.Error.TaskNotFound" xml:space="preserve">
<value>Không tìm thấy task: {0}</value>
</data>
</root>
\ No newline at end of file
diff --git a/optimizerDuck/Services/Managers/ConfigManager.cs b/optimizerDuck/Services/Managers/ConfigManager.cs
index 4910088..7ba69e3 100644
--- a/optimizerDuck/Services/Managers/ConfigManager.cs
+++ b/optimizerDuck/Services/Managers/ConfigManager.cs
@@ -8,20 +8,20 @@ using optimizerDuck.Common.Helpers;
namespace optimizerDuck.Services.Managers;
/// <summary>
- /// Manages application configuration settings stored in appsettings.json.
- /// </summary>
+/// Manages application configuration settings stored in appsettings.json.
+/// </summary>
public class ConfigManager(IConfiguration configuration, ILogger<ConfigManager> logger)
{
/// <summary>
/// The path to the configuration file.
/// </summary>
private readonly string _configPath = Path.Combine(Shared.RootDirectory, "appsettings.json");
-
+
/// <summary>
/// Semaphore for thread-safe access to configuration data.
/// </summary>
private readonly SemaphoreSlim _lock = new(1, 1);
-
+
/// <summary>
/// Cached configuration data.
/// </summary>
diff --git a/optimizerDuck/Services/Managers/LanguageManager.cs b/optimizerDuck/Services/Managers/LanguageManager.cs
index 8ba2db8..a2c0219 100644
--- a/optimizerDuck/Services/Managers/LanguageManager.cs
+++ b/optimizerDuck/Services/Managers/LanguageManager.cs
@@ -4,8 +4,8 @@ using optimizerDuck.Resources.Languages;
namespace optimizerDuck.Services.Managers;
/// <summary>
- /// Provides localization and culture management for the application.
- /// </summary>
+/// Provides localization and culture management for the application.
+/// </summary>
public class Loc
{
/// <summary>
diff --git a/optimizerDuck/Services/Managers/RevertManager.cs b/optimizerDuck/Services/Managers/RevertManager.cs
index 9711ba1..80f014d 100644
--- a/optimizerDuck/Services/Managers/RevertManager.cs
+++ b/optimizerDuck/Services/Managers/RevertManager.cs
@@ -12,8 +12,8 @@ using optimizerDuck.Resources.Languages;
namespace optimizerDuck.Services.Managers;
/// <summary>
- /// Manages revert functionality for optimizations, allowing users to undo changes.
- /// </summary>
+/// Manages revert functionality for optimizations, allowing users to undo changes.
+/// </summary>
public class RevertManager(ILogger<RevertManager> logger)
{
/// <summary>
diff --git a/optimizerDuck/Services/OptimizationService.cs b/optimizerDuck/Services/OptimizationService.cs
index 4ef7b56..2721670 100644
--- a/optimizerDuck/Services/OptimizationService.cs
+++ b/optimizerDuck/Services/OptimizationService.cs
@@ -41,7 +41,7 @@ public class OptimizationService(
/// Creates a Windows system restore point.
/// </summary>
/// <returns>
- /// A task that completes with a <see cref="RestorePointResult"/> indicating success,
+ /// A task that completes with a <see cref="RestorePointResult" /> indicating success,
/// failure, or if the frequency limit was reached.
/// </returns>
public async Task<RestorePointResult> CreateRestorePointAsync()
diff --git a/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs b/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs
index 4fb0033..368038e 100644
--- a/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs
+++ b/optimizerDuck/Services/OptimizationServices/ScheduledTaskService.cs
@@ -1,7 +1,9 @@
+using System.Collections.ObjectModel;
using Microsoft.Extensions.Logging;
using Microsoft.Win32.TaskScheduler;
using optimizerDuck.Core.Models.ScheduledTask;
using optimizerDuck.Resources.Languages;
+using Task = Microsoft.Win32.TaskScheduler.Task;
namespace optimizerDuck.Services.OptimizationServices;
@@ -33,7 +35,9 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
public static void DisableTask(string fullPath)
{
using var ts = new TaskService();
- var task = ts.GetTask(fullPath) ?? throw new InvalidOperationException(string.Format(Translations.ScheduledTasks_Error_TaskNotFound, fullPath));
+ var task = ts.GetTask(fullPath) ??
+ throw new InvalidOperationException(string.Format(Translations.ScheduledTasks_Error_TaskNotFound,
+ fullPath));
task.Enabled = false;
}
@@ -43,7 +47,9 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
public static void EnableTask(string fullPath)
{
using var ts = new TaskService();
- var task = ts.GetTask(fullPath) ?? throw new InvalidOperationException(string.Format(Translations.ScheduledTasks_Error_TaskNotFound, fullPath));
+ var task = ts.GetTask(fullPath) ??
+ throw new InvalidOperationException(string.Format(Translations.ScheduledTasks_Error_TaskNotFound,
+ fullPath));
task.Enabled = true;
}
@@ -63,11 +69,12 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
CollectTasks(ts.RootFolder, results);
// Extract icons from task commands
- Parallel.ForEach(results, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, task =>
- {
- if (!string.IsNullOrWhiteSpace(task.ActionSummary))
- task.LogoImage = StartupManagerService.ExtractIcon(task.ActionSummary);
- });
+ Parallel.ForEach(results, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount },
+ task =>
+ {
+ if (!string.IsNullOrWhiteSpace(task.ActionSummary))
+ task.LogoImage = StartupManagerService.ExtractIcon(task.ActionSummary);
+ });
}
catch (Exception ex)
{
@@ -196,7 +203,7 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
td.RegistrationInfo.Author = model.Author ?? string.Empty;
td.Settings.Enabled = model.IsEnabled;
td.Settings.Hidden = model.Hidden;
-
+
if (model.RunWithHighestPrivileges)
td.Principal.RunLevel = TaskRunLevel.Highest;
@@ -233,7 +240,6 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
// Ensure folder exists
var folder = ts.RootFolder;
if (!string.IsNullOrWhiteSpace(folderPath) && folderPath != "\\")
- {
try
{
folder = ts.GetFolder(folderPath);
@@ -242,7 +248,6 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
{
folder = ts.RootFolder.CreateFolder(folderPath);
}
- }
folder.RegisterTaskDefinition(model.Name, td);
logger.LogInformation("Registered task {Name} in folder {Folder}", model.Name, folderPath);
@@ -281,7 +286,7 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
}
}
- private static ScheduledTaskModel MapTaskToModel(Microsoft.Win32.TaskScheduler.Task task)
+ private static ScheduledTaskModel MapTaskToModel(Task task)
{
var def = task.Definition;
var triggers = def.Triggers;
@@ -310,7 +315,7 @@ public class ScheduledTaskService(ILogger<ScheduledTaskService> logger)
IsEnabled = task.Enabled,
State = task.State.ToString(),
TriggerSummary = string.Join("; ", triggerDescriptions),
- TriggerTypes = new(triggerDescriptions),
+ TriggerTypes = new ObservableCollection<string>(triggerDescriptions),
ActionSummary = actionSummary,
LastRunTime = task.LastRunTime == DateTime.MinValue ? null : task.LastRunTime,
NextRunTime = task.NextRunTime == DateTime.MinValue ? null : task.NextRunTime,
diff --git a/optimizerDuck/Services/OptimizationServices/ShellService.cs b/optimizerDuck/Services/OptimizationServices/ShellService.cs
index d3881df..7b56cd8 100644
--- a/optimizerDuck/Services/OptimizationServices/ShellService.cs
+++ b/optimizerDuck/Services/OptimizationServices/ShellService.cs
@@ -63,19 +63,24 @@ public static class ShellService
policy ??= ShellPolicy.Default;
var commandForUser = (arguments.Contains("-EncodedCommand", StringComparison.OrdinalIgnoreCase)
- ? command.DecodeBase64()
- : command)
- .Replace("$ProgressPreference='SilentlyContinue'; ", "")
- .Replace("[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; ", "")
- .Replace("$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8; ", "")
- .Replace("chcp 65001 > nul & ", "");
+ ? command.DecodeBase64()
+ : command)
+ .Replace("$ProgressPreference='SilentlyContinue'; ", "")
+ .Replace("[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; ", "")
+ .Replace(
+ "$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8; ",
+ "")
+ .Replace("chcp 65001 > nul & ", "");
var fullCommandForUser =
$"{fileName} {arguments.Replace("-EncodedCommand", "-Command", StringComparison.OrdinalIgnoreCase)} {commandForUser}";
- var processArgs = fileName.Equals("cmd.exe", StringComparison.OrdinalIgnoreCase) && !arguments.Contains("chcp 65001") // try best effort to ensure UTF-8 codepage for cmd, but better use PowerShell if possible
- ? $"{arguments} chcp 65001 > nul & {command}"
- : $"{arguments} {command}";
+ var processArgs =
+ fileName.Equals("cmd.exe", StringComparison.OrdinalIgnoreCase) &&
+ !arguments.Contains(
+ "chcp 65001") // try best effort to ensure UTF-8 codepage for cmd, but better use PowerShell if possible
+ ? $"{arguments} chcp 65001 > nul & {command}"
+ : $"{arguments} {command}";
var psi = new ProcessStartInfo
{
@@ -219,12 +224,14 @@ public static class ShellService
policy ??= ShellPolicy.Default;
var commandForUser = (arguments.Contains("-EncodedCommand", StringComparison.OrdinalIgnoreCase)
- ? command.DecodeBase64()
- : command)
- .Replace("$ProgressPreference='SilentlyContinue'; ", "")
- .Replace("[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; ", "")
- .Replace("$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8; ", "")
- .Replace("chcp 65001 > nul & ", "");
+ ? command.DecodeBase64()
+ : command)
+ .Replace("$ProgressPreference='SilentlyContinue'; ", "")
+ .Replace("[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; ", "")
+ .Replace(
+ "$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8; ",
+ "")
+ .Replace("chcp 65001 > nul & ", "");
var fullCommandForUser =
$"{fileName} {arguments.Replace("-EncodedCommand", "-Command", StringComparison.OrdinalIgnoreCase)} {commandForUser}";
@@ -447,10 +454,10 @@ public static class ShellService
public static ShellResult PowerShell(string command, ShellRevertStep? revertStep = null, ShellPolicy? policy = null)
{
command =
- "$ProgressPreference='SilentlyContinue'; " +
- "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; " +
- "$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8; " +
- command;
+ "$ProgressPreference='SilentlyContinue'; " +
+ "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; " +
+ "$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8; " +
+ command;
return Run("powershell.exe",
"-NonInteractive -NoLogo -NoProfile -ExecutionPolicy Bypass -EncodedCommand",
command.EncodeBase64(),
diff --git a/optimizerDuck/Services/StartupManagerService.cs b/optimizerDuck/Services/StartupManagerService.cs
index 196c3b2..047f94d 100644
--- a/optimizerDuck/Services/StartupManagerService.cs
+++ b/optimizerDuck/Services/StartupManagerService.cs
@@ -3,7 +3,6 @@ using System.Drawing;
using System.IO;
using System.Windows;
using System.Windows.Interop;
-using System.Windows.Media;
using System.Windows.Media.Imaging;
using Microsoft.Extensions.Logging;
using Microsoft.Win32;
@@ -42,7 +41,11 @@ public class StartupManagerService(ILogger<StartupManagerService> logger, Schedu
{
var appInfo = GetAppInfo(app.Command);
var publisher = !string.IsNullOrWhiteSpace(appInfo.Publisher) ? appInfo.Publisher : appInfo.Description;
- if (string.IsNullOrWhiteSpace(publisher)) publisher = app.Location is StartupAppLocation.UserStartupFolder or StartupAppLocation.CommonStartupFolder ? "Folder Shortcut" : "Registry";
+ if (string.IsNullOrWhiteSpace(publisher))
+ publisher = app.Location is StartupAppLocation.UserStartupFolder
+ or StartupAppLocation.CommonStartupFolder
+ ? "Folder Shortcut"
+ : "Registry";
app.Publisher = publisher;
app.FilePath = appInfo.FilePath;
@@ -124,7 +127,8 @@ public class StartupManagerService(ILogger<StartupManagerService> logger, Schedu
? Registry.LocalMachine
: Registry.CurrentUser;
- var approvedSubKeyPath = @"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder";
+ var approvedSubKeyPath =
+ @"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder";
using var approvedKey = rootKey.OpenSubKey(approvedSubKeyPath);
foreach (var file in Directory.GetFiles(dirPath))
@@ -212,7 +216,8 @@ public class StartupManagerService(ILogger<StartupManagerService> logger, Schedu
? Registry.LocalMachine
: Registry.CurrentUser;
- const string approvedSubKeyPath = @"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder";
+ const string approvedSubKeyPath =
+ @"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder";
using var approvedKey = rootKey.OpenSubKey(approvedSubKeyPath, true)
?? rootKey.CreateSubKey(approvedSubKeyPath, true);
@@ -240,11 +245,12 @@ public class StartupManagerService(ILogger<StartupManagerService> logger, Schedu
}).OrderBy(t => t.TaskName).ToList();
// Extract icons from task commands
- Parallel.ForEach(tasks, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, task =>
- {
- if (!string.IsNullOrWhiteSpace(task.ActionSummary))
- task.LogoImage = ExtractIcon(task.ActionSummary);
- });
+ Parallel.ForEach(tasks, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount },
+ task =>
+ {
+ if (!string.IsNullOrWhiteSpace(task.ActionSummary))
+ task.LogoImage = ExtractIcon(task.ActionSummary);
+ });
return tasks;
}
diff --git a/optimizerDuck/Services/SystemInfoService.cs b/optimizerDuck/Services/SystemInfoService.cs
index 46f87b8..447d067 100644
--- a/optimizerDuck/Services/SystemInfoService.cs
+++ b/optimizerDuck/Services/SystemInfoService.cs
@@ -36,6 +36,16 @@ public enum GpuVendor
/// </summary>
public sealed record GpuInfo
{
+ /// <summary>
+ /// A sentinel value representing an unknown GPU.
+ /// </summary>
+ public static readonly GpuInfo Unknown = new()
+ {
+ Name = Translations.Common_Unknown,
+ DriverVersion = Translations.Common_Unknown,
+ Vendor = GpuVendor.Unknown
+ };
+
/// <summary>
/// The display name of the GPU (e.g., "NVIDIA GeForce RTX 4090").
/// </summary>
@@ -66,16 +76,6 @@ public sealed record GpuInfo
/// </summary>
public string? PnpDeviceId { get; init; }
- /// <summary>
- /// A sentinel value representing an unknown GPU.
- /// </summary>
- public static readonly GpuInfo Unknown = new()
- {
- Name = Translations.Common_Unknown,
- DriverVersion = Translations.Common_Unknown,
- Vendor = GpuVendor.Unknown
- };
-
/// <inheritdoc />
public override string ToString()
{
@@ -89,6 +89,23 @@ public sealed record GpuInfo
/// </summary>
public sealed record CpuInfo
{
+ /// <summary>
+ /// A sentinel value representing an unknown CPU.
+ /// </summary>
+ public static readonly CpuInfo Unknown = new()
+ {
+ Name = Translations.Common_Unknown,
+ Manufacturer = Translations.Common_Unknown,
+ Vendor = Translations.Common_Unknown,
+ Architecture = Translations.Common_Unknown,
+ Cores = 0,
+ Threads = 0,
+ MaxClockMHz = 0,
+ CurrentClockMHz = 0,
+ L2CacheKB = 0,
+ L3CacheKB = 0
+ };
+
/// <summary>
/// The processor display name (e.g., "Intel Core i9-13900K").
/// </summary>
@@ -138,23 +155,6 @@ public sealed record CpuInfo
/// The L3 cache size in kilobytes.
/// </summary>
public required int L3CacheKB { get; init; }
-
- /// <summary>
- /// A sentinel value representing an unknown CPU.
- /// </summary>
- public static readonly CpuInfo Unknown = new()
- {
- Name = Translations.Common_Unknown,
- Manufacturer = Translations.Common_Unknown,
- Vendor = Translations.Common_Unknown,
- Architecture = Translations.Common_Unknown,
- Cores = 0,
- Threads = 0,
- MaxClockMHz = 0,
- CurrentClockMHz = 0,
- L2CacheKB = 0,
- L3CacheKB = 0
- };
}
/// <summary>
@@ -234,14 +234,14 @@ public sealed record DiskVolume
public sealed record DiskInfo
{
/// <summary>
- /// The list of detected disk volumes.
+ /// A sentinel value representing unknown disk information.
/// </summary>
- public required IReadOnlyList<DiskVolume> Volumes { get; init; }
+ public static readonly DiskInfo Unknown = new() { Volumes = [] };
/// <summary>
- /// A sentinel value representing unknown disk information.
+ /// The list of detected disk volumes.
/// </summary>
- public static readonly DiskInfo Unknown = new() { Volumes = [] };
+ public required IReadOnlyList<DiskVolume> Volumes { get; init; }
}
/// <summary>
@@ -280,6 +280,12 @@ public sealed record RamModule
/// </summary>
public sealed record RamInfo
{
+ /// <summary>
+ /// A sentinel value representing unknown RAM information.
+ /// </summary>
+ public static readonly RamInfo Unknown = new()
+ { TotalGB = 0, TotalMB = 0, TotalKB = 0, AvailableGB = 0, UsedPercent = 0, UsedGB = 0, Modules = [] };
+
/// <summary>
/// The total installed RAM in gigabytes.
/// </summary>
@@ -314,11 +320,6 @@ public sealed record RamInfo
/// The list of physical RAM modules.
/// </summary>
public required IReadOnlyList<RamModule> Modules { get; init; }
-
- /// <summary>
- /// A sentinel value representing unknown RAM information.
- /// </summary>
- public static readonly RamInfo Unknown = new() { TotalGB = 0, TotalMB = 0, TotalKB = 0, AvailableGB = 0, UsedPercent = 0, UsedGB = 0, Modules = [] };
}
/// <summary>
@@ -326,6 +327,21 @@ public sealed record RamInfo
/// </summary>
public sealed record OsInfo
{
+ /// <summary>
+ /// A sentinel value representing unknown OS information.
+ /// </summary>
+ public static readonly OsInfo Unknown = new()
+ {
+ Name = Translations.Common_Unknown,
+ Version = Translations.Common_Unknown,
+ BuildNumber = Translations.Common_Unknown,
+ Edition = Translations.Common_Unknown,
+ Architecture = Translations.Common_Unknown,
+ DeviceType = Translations.Common_Unknown,
+ InstallDate = Translations.Common_Unknown,
+ LastBootUpTime = Translations.Common_Unknown
+ };
+
/// <summary>
/// The OS name (e.g., "Microsoft Windows 11 Pro").
/// </summary>
@@ -365,21 +381,6 @@ public sealed record OsInfo
/// The last boot-up time.
/// </summary>
public required string LastBootUpTime { get; init; }
-
- /// <summary>
- /// A sentinel value representing unknown OS information.
- /// </summary>
- public static readonly OsInfo Unknown = new()
- {
- Name = Translations.Common_Unknown,
- Version = Translations.Common_Unknown,
- BuildNumber = Translations.Common_Unknown,
- Edition = Translations.Common_Unknown,
- Architecture = Translations.Common_Unknown,
- DeviceType = Translations.Common_Unknown,
- InstallDate = Translations.Common_Unknown,
- LastBootUpTime = Translations.Common_Unknown
- };
}
/// <summary>
@@ -387,6 +388,18 @@ public sealed record OsInfo
/// </summary>
public sealed record BiosInfo
{
+ /// <summary>
+ /// A sentinel value representing unknown BIOS information.
+ /// </summary>
+ public static readonly BiosInfo Unknown = new()
+ {
+ Manufacturer = Translations.Common_Unknown,
+ Version = Translations.Common_Unknown,
+ ReleaseDate = Translations.Common_Unknown,
+ SmbiosVersion = Translations.Common_Unknown,
+ SerialNumber = Translations.Common_Unknown
+ };
+
/// <summary>
/// The BIOS manufacturer.
/// </summary>
@@ -411,18 +424,6 @@ public sealed record BiosInfo
/// The system serial number.
/// </summary>
public required string SerialNumber { get; init; }
-
- /// <summary>
- /// A sentinel value representing unknown BIOS information.
- /// </summary>
- public static readonly BiosInfo Unknown = new()
- {
- Manufacturer = Translations.Common_Unknown,
- Version = Translations.Common_Unknown,
- ReleaseDate = Translations.Common_Unknown,
- SmbiosVersion = Translations.Common_Unknown,
- SerialNumber = Translations.Common_Unknown
- };
}
/// <summary>
@@ -430,6 +431,20 @@ public sealed record BiosInfo
/// </summary>
public sealed record SystemSnapshot
{
+ /// <summary>
+ /// A sentinel value representing a completely unknown system.
+ /// </summary>
+ public static readonly SystemSnapshot Unknown = new()
+ {
+ Cpu = CpuInfo.Unknown,
+ Ram = RamInfo.Unknown,
+ Os = OsInfo.Unknown,
+ Bios = BiosInfo.Unknown,
+ Gpus = [],
+ PrimaryGpu = null,
+ Disk = DiskInfo.Unknown
+ };
+
/// <summary>
/// CPU information.
/// </summary>
@@ -464,20 +479,6 @@ public sealed record SystemSnapshot
/// Disk volume information.
/// </summary>
public required DiskInfo Disk { get; init; }
-
- /// <summary>
- /// A sentinel value representing a completely unknown system.
- /// </summary>
- public static readonly SystemSnapshot Unknown = new()
- {
- Cpu = CpuInfo.Unknown,
- Ram = RamInfo.Unknown,
- Os = OsInfo.Unknown,
- Bios = BiosInfo.Unknown,
- Gpus = [],
- PrimaryGpu = null,
- Disk = DiskInfo.Unknown
- };
}
// ============================================================================
@@ -682,16 +683,16 @@ internal static class CpuProvider
return new CpuInfo
{
- Name = name,
- Manufacturer = manufacturer,
- Vendor = vendor,
+ Name = name,
+ Manufacturer = manufacturer,
+ Vendor = vendor,
Architecture = architecture,
- Cores = cores,
- Threads = threads,
- MaxClockMHz = maxMHz,
+ Cores = cores,
+ Threads = threads,
+ MaxClockMHz = maxMHz,
CurrentClockMHz = currentMHz,
- L2CacheKB = l2kb,
- L3CacheKB = l3kb
+ L2CacheKB = l2kb,
+ L3CacheKB = l3kb
};
}
catch
@@ -1397,7 +1398,7 @@ internal static class GpuProvider
try
{
- for (uint i = 0; ; i++)
+ for (uint i = 0;; i++)
{
var hr = factory.EnumAdapters1(i, out var adapter);
if (hr != 0 || adapter == null) break; // DXGI_ERROR_NOT_FOUND
@@ -1894,7 +1895,8 @@ public sealed class SystemInfoService
var modelInfo = !string.IsNullOrEmpty(volume.Model) ? $" - {volume.Model}" : "";
_logger.LogInformation(
"Disk {VolumeLetter}{SystemDrive} [{MediaType}] {VolumeTotalSizeGb:F1} GB (Free: {VolumeFreeSpaceGb:F1} GB){ModelInfo}",
- volume.DriveLetter, systemDrive, volume.MediaType, volume.TotalSizeGB, volume.AvailableSizeGB, modelInfo);
+ volume.DriveLetter, systemDrive, volume.MediaType, volume.TotalSizeGB, volume.AvailableSizeGB,
+ modelInfo);
}
}
catch (Exception ex)
diff --git a/optimizerDuck/UI/ViewModels/Dialogs/OptimizationDetailsViewModel.cs b/optimizerDuck/UI/ViewModels/Dialogs/OptimizationDetailsViewModel.cs
index 60109f1..eef829d 100644
--- a/optimizerDuck/UI/ViewModels/Dialogs/OptimizationDetailsViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Dialogs/OptimizationDetailsViewModel.cs
@@ -1,10 +1,12 @@
using System.Diagnostics;
using System.IO;
+using System.Net.Http;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.Logging;
using optimizerDuck.Common.Helpers;
using optimizerDuck.Core.Interfaces;
+using optimizerDuck.Core.Optimizers;
using optimizerDuck.Resources.Languages;
using optimizerDuck.Services.Managers;
using Wpf.Ui;
@@ -51,7 +53,7 @@ public partial class OptimizationDetailsViewModel(
[RelayCommand]
private async Task ViewSourceOnGitHubAsync()
{
- if (Optimization is not Core.Optimizers.BaseOptimization baseOpt || baseOpt.OwnerType == null)
+ if (Optimization is not BaseOptimization baseOpt || baseOpt.OwnerType == null)
return;
var fileName = baseOpt.OwnerType.Name;
@@ -64,8 +66,8 @@ public partial class OptimizationDetailsViewModel(
{
var rawUrl = $"https://raw.githubusercontent.com/itsfatduck/optimizerDuck/master/{relativePath}";
- using var httpClient = new System.Net.Http.HttpClient { Timeout = TimeSpan.FromSeconds(5) };
- string source = await httpClient.GetStringAsync(rawUrl);
+ using var httpClient = new HttpClient { Timeout = TimeSpan.FromSeconds(5) };
+ var source = await httpClient.GetStringAsync(rawUrl);
var lines = source.Split('\n');
for (var i = 0; i < lines.Length; i++)
diff --git a/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs
index 465ed55..ccbac7f 100644
--- a/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/BloatwareViewModel.cs
@@ -30,7 +30,8 @@ public partial class BloatwareViewModel : ViewModel
[ObservableProperty] private int _selectedSortByIndex; // 0=Name, 1=Publisher, 2=Risk
[ObservableProperty] private bool isLoading;
- public BloatwareViewModel(BloatwareService bloatwareService, IContentDialogService contentDialogService, ILogger<BloatwareViewModel> logger)
+ public BloatwareViewModel(BloatwareService bloatwareService, IContentDialogService contentDialogService,
+ ILogger<BloatwareViewModel> logger)
{
_bloatwareService = bloatwareService;
_contentDialogService = contentDialogService;
diff --git a/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
index 293254e..d99c5b7 100644
--- a/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/DiskCleanupViewModel.cs
@@ -77,7 +77,8 @@ public partial class DiskCleanupViewModel(
// Automatically start scanning
await ScanAsync();
- CleanupItems = new ObservableCollection<CleanupItem>(CleanupItems.OrderByDescending(i => i.SizeBytes).ToArray());
+ CleanupItems =
+ new ObservableCollection<CleanupItem>(CleanupItems.OrderByDescending(i => i.SizeBytes).ToArray());
}
[RelayCommand]
diff --git a/optimizerDuck/UI/ViewModels/Pages/ScheduledTasksViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/ScheduledTasksViewModel.cs
index d0b51cd..0fb8452 100644
--- a/optimizerDuck/UI/ViewModels/Pages/ScheduledTasksViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/ScheduledTasksViewModel.cs
@@ -16,10 +16,11 @@ namespace optimizerDuck.UI.ViewModels.Pages;
public partial class ScheduledTasksViewModel : ViewModel
{
private readonly List<ScheduledTaskModel> _allTasks = [];
+ private readonly IContentDialogService _contentDialogService;
private readonly ILogger<ScheduledTasksViewModel> _logger;
private readonly ScheduledTaskService _scheduledTaskService;
- private readonly IContentDialogService _contentDialogService;
private readonly ISnackbarService _snackbarService;
+ [ObservableProperty] private bool _hideMicrosoftTasks = true;
private bool _isInitialized;
[ObservableProperty] [NotifyPropertyChangedFor(nameof(IsNotLoading))]
@@ -27,7 +28,6 @@ public partial class ScheduledTasksViewModel : ViewModel
[ObservableProperty] private string _searchText = string.Empty;
[ObservableProperty] private int _sortByIndex;
- [ObservableProperty] private bool _hideMicrosoftTasks = true;
public ScheduledTasksViewModel(
ScheduledTaskService scheduledTaskService,
@@ -89,7 +89,9 @@ public partial class ScheduledTasksViewModel : ViewModel
});
_snackbarService.Show(
- task.IsEnabled ? Translations.ScheduledTasks_Snackbar_Enabled_Title : Translations.ScheduledTasks_Snackbar_Disabled_Title,
+ task.IsEnabled
+ ? Translations.ScheduledTasks_Snackbar_Enabled_Title
+ : Translations.ScheduledTasks_Snackbar_Disabled_Title,
string.Format(Translations.ScheduledTasks_Snackbar_Toggle_Message, task.Name),
ControlAppearance.Success,
new SymbolIcon { Symbol = SymbolRegular.CheckmarkCircle24, Filled = true },
@@ -100,7 +102,7 @@ public partial class ScheduledTasksViewModel : ViewModel
catch (Exception ex)
{
_logger.LogError(ex, "Failed to toggle task {Name}", task.Name);
-
+
// Revert UI without triggering PropertyChanged to avoid infinite loop
task.PropertyChanged -= Task_PropertyChanged;
task.IsEnabled = !task.IsEnabled;
@@ -234,9 +236,20 @@ public partial class ScheduledTasksViewModel : ViewModel
}
// Filter triggers
- partial void OnSearchTextChanged(string value) => ApplyFilter();
- partial void OnSortByIndexChanged(int value) => ApplyFilter();
- partial void OnHideMicrosoftTasksChanged(bool value) => ApplyFilter();
+ partial void OnSearchTextChanged(string value)
+ {
+ ApplyFilter();
+ }
+
+ partial void OnSortByIndexChanged(int value)
+ {
+ ApplyFilter();
+ }
+
+ partial void OnHideMicrosoftTasksChanged(bool value)
+ {
+ ApplyFilter();
+ }
/// <summary>
/// Refreshes the state of a single task in-place by re-querying the task scheduler.
@@ -323,4 +336,4 @@ public partial class ScheduledTasksViewModel : ViewModel
if (e.PropertyName == nameof(ScheduledTaskModel.IsEnabled) && sender is ScheduledTaskModel task)
await ToggleTask(task);
}
-}
+}
\ No newline at end of file
diff --git a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
index 723d75b..cafe6a0 100644
--- a/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/SettingsViewModel.cs
@@ -166,7 +166,7 @@ public partial class SettingsViewModel(
logger.LogError(ex, "Failed to open acknowledgements page");
}
}
-
+
[RelayCommand]
private void OpenWebsite(string type)
{
diff --git a/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs b/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs
index ef95833..7c82c7c 100644
--- a/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs
+++ b/optimizerDuck/UI/ViewModels/Pages/StartupManagerViewModel.cs
@@ -17,22 +17,22 @@ public partial class StartupManagerViewModel : ViewModel
{
private readonly List<StartupApp> _allApps = [];
private readonly List<StartupTask> _allTasks = [];
+ private readonly IContentDialogService _contentDialogService;
private readonly ILogger<StartupManagerViewModel> _logger;
private readonly StartupManagerService _startupManagerService;
- private readonly IContentDialogService _contentDialogService;
- private bool _isInitialized;
-
- [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsNotLoading))]
- private bool _isLoading;
// Per-section: Apps
[ObservableProperty] private string _appSearchText = string.Empty;
[ObservableProperty] private int _appSortByIndex;
+ [ObservableProperty] private bool _hideMicrosoftTasks = true;
+ private bool _isInitialized;
+
+ [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsNotLoading))]
+ private bool _isLoading;
// Per-section: Tasks
[ObservableProperty] private string _taskSearchText = string.Empty;
[ObservableProperty] private int _taskSortByIndex;
- [ObservableProperty] private bool _hideMicrosoftTasks = true;
public StartupManagerViewModel(
StartupManagerService startupManagerService,
@@ -124,13 +124,31 @@ public partial class StartupManagerViewModel : ViewModel
}
// Apps filter triggers
- partial void OnAppSearchTextChanged(string value) => ApplyAppFilter();
- partial void OnAppSortByIndexChanged(int value) => ApplyAppFilter();
+ partial void OnAppSearchTextChanged(string value)
+ {
+ ApplyAppFilter();
+ }
+
+ partial void OnAppSortByIndexChanged(int value)
+ {
+ ApplyAppFilter();
+ }
// Tasks filter triggers
- partial void OnTaskSearchTextChanged(string value) => ApplyTaskFilter();
- partial void OnTaskSortByIndexChanged(int value) => ApplyTaskFilter();
- partial void OnHideMicrosoftTasksChanged(bool value) => ApplyTaskFilter();
+ partial void OnTaskSearchTextChanged(string value)
+ {
+ ApplyTaskFilter();
+ }
+
+ partial void OnTaskSortByIndexChanged(int value)
+ {
+ ApplyTaskFilter();
+ }
+
+ partial void OnHideMicrosoftTasksChanged(bool value)
+ {
+ ApplyTaskFilter();
+ }
private async Task LoadDataAsync()
{
diff --git a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml
index e05be87..12bdd36 100644
--- a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml
+++ b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml
@@ -1,14 +1,14 @@
<UserControl
+ d:DesignHeight="400"
+ d:DesignWidth="500"
+ mc:Ignorable="d"
x:Class="optimizerDuck.UI.Views.Dialogs.ScheduledTaskCreateDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- d:DesignHeight="400"
- d:DesignWidth="500"
- mc:Ignorable="d">
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid MinWidth="480">
<Grid.RowDefinitions>
@@ -26,123 +26,123 @@
<!-- Left Column: General & Action Info -->
<StackPanel Grid.Column="0">
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="{ext:Loc ScheduledTasks.Dialog.TaskName}" />
<ui:TextBox
- x:Name="TaskNameBox"
Margin="0,0,0,12"
- PlaceholderText="{ext:Loc ScheduledTasks.Dialog.TaskNameHint}" />
+ PlaceholderText="{ext:Loc ScheduledTasks.Dialog.TaskNameHint}"
+ x:Name="TaskNameBox" />
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="{ext:Loc ScheduledTasks.Dialog.Description}" />
<ui:TextBox
- x:Name="DescriptionBox"
- MinHeight="60"
- Margin="0,0,0,12"
AcceptsReturn="True"
+ Margin="0,0,0,12"
+ MinHeight="60"
PlaceholderText="{ext:Loc ScheduledTasks.Dialog.DescriptionHint}"
- TextWrapping="Wrap" />
+ TextWrapping="Wrap"
+ x:Name="DescriptionBox" />
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="{ext:Loc ScheduledTasks.Dialog.FolderPath}" />
<ui:TextBox
- x:Name="FolderPathBox"
Margin="0,0,0,12"
- PlaceholderText="\" />
+ PlaceholderText="\"
+ x:Name="FolderPathBox" />
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="{ext:Loc ScheduledTasks.Dialog.Executable}" />
<ui:TextBox
- x:Name="ExecutableBox"
Margin="0,0,0,12"
- PlaceholderText="{ext:Loc ScheduledTasks.Dialog.ExecutableHint}" />
+ PlaceholderText="{ext:Loc ScheduledTasks.Dialog.ExecutableHint}"
+ x:Name="ExecutableBox" />
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="{ext:Loc ScheduledTasks.Dialog.Arguments}" />
<ui:TextBox
- x:Name="ArgumentsBox"
Margin="0,0,0,12"
- PlaceholderText="{ext:Loc ScheduledTasks.Dialog.ArgumentsHint}" />
+ PlaceholderText="{ext:Loc ScheduledTasks.Dialog.ArgumentsHint}"
+ x:Name="ArgumentsBox" />
</StackPanel>
<!-- Right Column: Triggers & Settings -->
<StackPanel Grid.Column="2">
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="{ext:Loc ScheduledTasks.Dialog.Trigger}" />
<Border
- Margin="0,0,0,12"
- Padding="12"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="4">
+ CornerRadius="4"
+ Margin="0,0,0,12"
+ Padding="12">
<StackPanel>
<CheckBox
- x:Name="LogonTriggerCheck"
- Margin="0,0,0,8"
Content="{ext:Loc ScheduledTasks.Dialog.TriggerLogon}"
- IsChecked="True" />
+ IsChecked="True"
+ Margin="0,0,0,8"
+ x:Name="LogonTriggerCheck" />
<CheckBox
- x:Name="BootTriggerCheck"
+ Content="{ext:Loc ScheduledTasks.Dialog.TriggerBoot}"
Margin="0,0,0,8"
- Content="{ext:Loc ScheduledTasks.Dialog.TriggerBoot}" />
+ x:Name="BootTriggerCheck" />
<CheckBox
- x:Name="IdleTriggerCheck"
+ Content="{ext:Loc ScheduledTasks.Dialog.TriggerIdle}"
Margin="0,0,0,8"
- Content="{ext:Loc ScheduledTasks.Dialog.TriggerIdle}" />
+ x:Name="IdleTriggerCheck" />
<CheckBox
- x:Name="RegistrationTriggerCheck"
+ Content="{ext:Loc ScheduledTasks.Dialog.TriggerRegistration}"
Margin="0,0,0,8"
- Content="{ext:Loc ScheduledTasks.Dialog.TriggerRegistration}" />
+ x:Name="RegistrationTriggerCheck" />
<StackPanel Margin="0,0,0,0" Orientation="Horizontal">
<CheckBox
- x:Name="DailyTriggerCheck"
+ Content="{ext:Loc ScheduledTasks.Dialog.TriggerDaily}"
Margin="0,0,12,0"
VerticalAlignment="Center"
- Content="{ext:Loc ScheduledTasks.Dialog.TriggerDaily}" />
+ x:Name="DailyTriggerCheck" />
<ui:TextBox
- x:Name="DailyTimeBox"
- Width="80"
IsEnabled="{Binding ElementName=DailyTriggerCheck, Path=IsChecked}"
PlaceholderText="12:00"
- ToolTip="{ext:Loc ScheduledTasks.Dialog.Time}" />
+ ToolTip="{ext:Loc ScheduledTasks.Dialog.Time}"
+ Width="80"
+ x:Name="DailyTimeBox" />
</StackPanel>
</StackPanel>
</Border>
<ui:TextBlock
- Margin="0,0,0,4"
FontTypography="Caption"
+ Margin="0,0,0,4"
Text="Settings" />
<Border
- Margin="0,0,0,12"
- Padding="12"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="4">
+ CornerRadius="4"
+ Margin="0,0,0,12"
+ Padding="12">
<StackPanel>
<CheckBox
- x:Name="EnabledCheck"
- Margin="0,0,0,8"
Content="{ext:Loc ScheduledTasks.Dialog.Enabled}"
- IsChecked="True" />
+ IsChecked="True"
+ Margin="0,0,0,8"
+ x:Name="EnabledCheck" />
<CheckBox
- x:Name="HighestPrivilegesCheck"
+ Content="{ext:Loc ScheduledTasks.Dialog.HighestPrivileges}"
Margin="0,0,0,8"
- Content="{ext:Loc ScheduledTasks.Dialog.HighestPrivileges}" />
- <CheckBox x:Name="HiddenCheck" Content="{ext:Loc ScheduledTasks.Dialog.Hidden}" />
+ x:Name="HighestPrivilegesCheck" />
+ <CheckBox Content="{ext:Loc ScheduledTasks.Dialog.Hidden}" x:Name="HiddenCheck" />
</StackPanel>
</Border>
</StackPanel>
</Grid>
</Grid>
-</UserControl>
+</UserControl>
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml.cs b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml.cs
index 32dd865..f43f75d 100644
--- a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml.cs
+++ b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskCreateDialog.xaml.cs
@@ -24,12 +24,10 @@ public partial class ScheduledTaskCreateDialog : UserControl
var fullPath = folderPath == "\\" ? $"\\{name}" : $"{folderPath}\\{name}";
// Parse daily time
- TimeSpan time = TimeSpan.Zero;
+ var time = TimeSpan.Zero;
if (DailyTriggerCheck.IsChecked == true && !string.IsNullOrWhiteSpace(DailyTimeBox.Text))
- {
if (TimeSpan.TryParse(DailyTimeBox.Text.Trim(), out var parsedTime))
time = parsedTime;
- }
return new ScheduledTaskModel
{
@@ -51,4 +49,4 @@ public partial class ScheduledTaskCreateDialog : UserControl
};
}
}
-}
+}
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml
index 4493861..d217125 100644
--- a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml
+++ b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml
@@ -262,4 +262,4 @@
</StackPanel>
</Border>
</StackPanel>
-</UserControl>
+</UserControl>
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml.cs b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml.cs
index 00b26fe..4a28908 100644
--- a/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml.cs
+++ b/optimizerDuck/UI/Views/Dialogs/ScheduledTaskDetailsDialog.xaml.cs
@@ -44,4 +44,4 @@ public partial class ScheduledTaskDetailsDialog : UserControl
StateBorder.Background = brush;
}
}
-}
+}
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml b/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml
index 738beab..4e2f9bd 100644
--- a/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml
+++ b/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml
@@ -1,20 +1,20 @@
<UserControl
+ d:DesignHeight="200"
+ d:DesignWidth="400"
+ mc:Ignorable="d"
x:Class="optimizerDuck.UI.Views.Dialogs.StartupTaskDetailsPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ext="clr-namespace:optimizerDuck.Common.Extensions"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
- d:DesignHeight="200"
- d:DesignWidth="400"
- mc:Ignorable="d">
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Border
- MinWidth="400"
- Padding="0"
Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
- CornerRadius="8">
+ CornerRadius="8"
+ MinWidth="400"
+ Padding="0">
<StackPanel>
<!-- Name -->
<Grid Margin="14,12">
@@ -23,22 +23,22 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:SymbolIcon
- Margin="0,0,10,0"
- VerticalAlignment="Top"
FontSize="14"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Symbol="AppGeneric24" />
+ Margin="0,0,10,0"
+ Symbol="AppGeneric24"
+ VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<ui:TextBlock
Appearance="Secondary"
FontTypography="Caption"
Text="{ext:Loc ScheduledTasks.Details.Name}" />
<ui:TextBlock
- x:Name="NameText"
- Margin="0,2,0,0"
FontTypography="Body"
+ Margin="0,2,0,0"
Text=""
- TextWrapping="Wrap" />
+ TextWrapping="Wrap"
+ x:Name="NameText" />
</StackPanel>
</Grid>
<Separator Margin="14,0" />
@@ -50,22 +50,22 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:SymbolIcon
- Margin="0,0,10,0"
- VerticalAlignment="Top"
FontSize="14"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Symbol="TextDescription24" />
+ Margin="0,0,10,0"
+ Symbol="TextDescription24"
+ VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<ui:TextBlock
Appearance="Secondary"
FontTypography="Caption"
Text="{ext:Loc ScheduledTasks.Details.Description}" />
<ui:TextBlock
- x:Name="DescriptionText"
- Margin="0,2,0,0"
FontTypography="Body"
+ Margin="0,2,0,0"
Text=""
- TextWrapping="Wrap" />
+ TextWrapping="Wrap"
+ x:Name="DescriptionText" />
</StackPanel>
</Grid>
<Separator Margin="14,0" />
@@ -77,23 +77,23 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:SymbolIcon
- Margin="0,0,10,0"
- VerticalAlignment="Top"
FontSize="14"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Symbol="Folder24" />
+ Margin="0,0,10,0"
+ Symbol="Folder24"
+ VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<ui:TextBlock
Appearance="Secondary"
FontTypography="Caption"
Text="{ext:Loc ScheduledTasks.Details.Path}" />
<ui:TextBlock
- x:Name="PathText"
- Margin="0,2,0,0"
FontFamily="Consolas"
FontTypography="Body"
+ Margin="0,2,0,0"
Text=""
- TextWrapping="Wrap" />
+ TextWrapping="Wrap"
+ x:Name="PathText" />
</StackPanel>
</Grid>
<Separator Margin="14,0" />
@@ -105,22 +105,22 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:SymbolIcon
- Margin="0,0,10,0"
- VerticalAlignment="Top"
FontSize="14"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Symbol="Timer24" />
+ Margin="0,0,10,0"
+ Symbol="Timer24"
+ VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<ui:TextBlock
Appearance="Secondary"
FontTypography="Caption"
Text="{ext:Loc ScheduledTasks.Details.Triggers}" />
<ui:TextBlock
- x:Name="TriggersText"
- Margin="0,2,0,0"
FontTypography="Body"
+ Margin="0,2,0,0"
Text=""
- TextWrapping="Wrap" />
+ TextWrapping="Wrap"
+ x:Name="TriggersText" />
</StackPanel>
</Grid>
<Separator Margin="14,0" />
@@ -132,25 +132,25 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:SymbolIcon
- Margin="0,0,10,0"
- VerticalAlignment="Top"
FontSize="14"
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
- Symbol="Play24" />
+ Margin="0,0,10,0"
+ Symbol="Play24"
+ VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<ui:TextBlock
Appearance="Secondary"
FontTypography="Caption"
Text="{ext:Loc ScheduledTasks.Details.Action}" />
<ui:TextBlock
- x:Name="ActionText"
- Margin="0,2,0,0"
FontFamily="Consolas"
FontTypography="Body"
+ Margin="0,2,0,0"
Text=""
- TextWrapping="Wrap" />
+ TextWrapping="Wrap"
+ x:Name="ActionText" />
</StackPanel>
</Grid>
</StackPanel>
</Border>
-</UserControl>
+</UserControl>
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml.cs b/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml.cs
index 8e8f10c..b63dfd1 100644
--- a/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml.cs
+++ b/optimizerDuck/UI/Views/Dialogs/StartupTaskDetailsPanel.xaml.cs
@@ -15,4 +15,4 @@ public partial class StartupTaskDetailsPanel : UserControl
TriggersText.Text = task.TriggerSummary ?? "—";
ActionText.Text = task.ActionSummary ?? "—";
}
-}
+}
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Pages/Optimizations/OptimizationPage.xaml b/optimizerDuck/UI/Views/Pages/Optimizations/OptimizationPage.xaml
index 61446e6..1f78a5c 100644
--- a/optimizerDuck/UI/Views/Pages/Optimizations/OptimizationPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/Optimizations/OptimizationPage.xaml
@@ -108,7 +108,10 @@
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon HorizontalAlignment="Left" Margin="0,0,6,0" Symbol="Filter24" />
+ <ui:SymbolIcon
+ HorizontalAlignment="Left"
+ Margin="0,0,6,0"
+ Symbol="Filter24" />
<TextBlock Grid.Column="1" HorizontalAlignment="Left">
<Run Text="{ext:Loc Common.SortBy.Risk}" />
<Run Text=" &amp; " />
@@ -118,14 +121,26 @@
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon HorizontalAlignment="Left" Margin="0,0,6,0" Symbol="TextSortAscending24" />
- <TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="{ext:Loc Common.SortBy.Name}" />
+ <ui:SymbolIcon
+ HorizontalAlignment="Left"
+ Margin="0,0,6,0"
+ Symbol="TextSortAscending24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Name}" />
</Grid>
</ComboBoxItem>
<ComboBoxItem HorizontalContentAlignment="Left">
<Grid ColumnDefinitions="Auto Auto" HorizontalAlignment="Left">
- <ui:SymbolIcon HorizontalAlignment="Left" Margin="0,0,6,0" Symbol="Shield24" />
- <TextBlock Grid.Column="1" HorizontalAlignment="Left" Text="{ext:Loc Common.SortBy.Risk}" />
+ <ui:SymbolIcon
+ HorizontalAlignment="Left"
+ Margin="0,0,6,0"
+ Symbol="Shield24" />
+ <TextBlock
+ Grid.Column="1"
+ HorizontalAlignment="Left"
+ Text="{ext:Loc Common.SortBy.Risk}" />
</Grid>
</ComboBoxItem>
</ComboBox>
diff --git a/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml b/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml
index f2a4b44..b6fa22c 100644
--- a/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml
@@ -79,14 +79,35 @@
FontTypography="BodyStrong"
HorizontalAlignment="Center"
Text="{ext:Loc ScheduledTasks.Loading}" />
+ <ui:TextBlock
+ Appearance="Secondary"
+ FontTypography="Caption"
+ HorizontalAlignment="Center"
+ Margin="0,4,0,0"
+ Text="{ext:Loc ScheduledTasks.Loading.Hint}" />
</StackPanel>
</Border>
<!-- Main Content -->
- <Grid
- Grid.Row="1"
- RowDefinitions="Auto,*"
- Visibility="{Binding ViewModel.IsNotLoading, Converter={StaticResource BooleanToVisibilityConverter}}">
+ <Grid Grid.Row="1">
+ <Grid.Style>
+ <Style TargetType="Grid">
+ <Setter Property="Visibility" Value="Collapsed" />
+ <Style.Triggers>
+ <MultiDataTrigger>
+ <MultiDataTrigger.Conditions>
+ <Condition Binding="{Binding ViewModel.IsNotLoading}" Value="True" />
+ <Condition Binding="{Binding ViewModel.IsLoading}" Value="False" />
+ </MultiDataTrigger.Conditions>
+ <Setter Property="Visibility" Value="Visible" />
+ </MultiDataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Grid.Style>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto" />
+ <RowDefinition Height="*" />
+ </Grid.RowDefinitions>
<!-- Toolbar -->
<WrapPanel
Grid.Row="0"
diff --git a/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml.cs b/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml.cs
index 278dde8..684b2e2 100644
--- a/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml.cs
+++ b/optimizerDuck/UI/Views/Pages/ScheduledTasksPage.xaml.cs
@@ -13,4 +13,4 @@ public partial class ScheduledTasksPage : INavigableView<ScheduledTasksViewModel
}
public ScheduledTasksViewModel ViewModel { get; }
-}
+}
\ No newline at end of file
diff --git a/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml b/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
index 378243e..689b0a0 100644
--- a/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
+++ b/optimizerDuck/UI/Views/Pages/StartupManagerPage.xaml
@@ -125,7 +125,7 @@
</Border>
<!-- Main Content -->
- <Border Visibility="{Binding ViewModel.HasData, Converter={StaticResource BooleanToVisibilityConverter}}" Grid.Row="1">
+ <Border Grid.Row="1" Visibility="{Binding ViewModel.HasData, Converter={StaticResource BooleanToVisibilityConverter}}">
<ScrollViewer Margin="0,0,16,0">
<StackPanel>
<!-- ═══════════ Startup Apps Section ═══════════ -->
diff --git a/optimizerDuck/optimizerDuck.csproj b/optimizerDuck/optimizerDuck.csproj
index 814069b..37c49a6 100644
--- a/optimizerDuck/optimizerDuck.csproj
+++ b/optimizerDuck/optimizerDuck.csproj
@@ -38,18 +38,18 @@
</ItemGroup>
<ItemGroup>
- <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
- <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3" />
- <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.3" />
- <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.3" />
- <PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
- <PackageReference Include="Serilog" Version="4.3.1" />
- <PackageReference Include="Serilog.Extensions.Hosting" Version="10.0.0" />
- <PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
- <PackageReference Include="System.Management.Automation" Version="7.5.4" />
- <PackageReference Include="TaskScheduler" Version="2.12.2" />
- <PackageReference Include="WPF-UI" Version="4.2.0" />
- <PackageReference Include="WPF-UI.DependencyInjection" Version="4.2.0" />
+ <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0"/>
+ <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3"/>
+ <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.3"/>
+ <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.3"/>
+ <PackageReference Include="Newtonsoft.Json" Version="13.0.4"/>
+ <PackageReference Include="Serilog" Version="4.3.1"/>
+ <PackageReference Include="Serilog.Extensions.Hosting" Version="10.0.0"/>
+ <PackageReference Include="Serilog.Sinks.File" Version="7.0.0"/>
+ <PackageReference Include="System.Management.Automation" Version="7.5.4"/>
+ <PackageReference Include="TaskScheduler" Version="2.12.2"/>
+ <PackageReference Include="WPF-UI" Version="4.2.0"/>
+ <PackageReference Include="WPF-UI.DependencyInjection" Version="4.2.0"/>
</ItemGroup>
<ItemGroup>
@@ -60,18 +60,18 @@
</ItemGroup>
<ItemGroup>
- <Resource Include="Resources\Images\Duck.png" />
- <Resource Include="Resources\Images\GitHubLogoBlack.png" />
- <Resource Include="Resources\Images\GitHubLogoWhite.png" />
- <Resource Include="Resources\Images\DiscordLogo.png" />
+ <Resource Include="Resources\Images\Duck.png"/>
+ <Resource Include="Resources\Images\GitHubLogoBlack.png"/>
+ <Resource Include="Resources\Images\GitHubLogoWhite.png"/>
+ <Resource Include="Resources\Images\DiscordLogo.png"/>
</ItemGroup>
<ItemGroup>
- <Compile Update="Resources\Languages\Translations.Designer.cs">
- <DesignTime>True</DesignTime>
- <AutoGen>True</AutoGen>
- <DependentUpon>Translations.resx</DependentUpon>
- </Compile>
+ <Compile Update="Resources\Languages\Translations.Designer.cs">
+ <DesignTime>True</DesignTime>
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Translations.resx</DependentUpon>
+ </Compile>
</ItemGroup>
</Project>