[Refactor] Replace direct localization property bindings with static resource references

This commit is contained in:
2025-07-08 13:17:36 +01:00
parent 7e8e42d07c
commit 01a2f916b9
26 changed files with 403 additions and 539 deletions

View File

@@ -30,7 +30,6 @@ using Avalonia.Threading;
using ReactiveUI;
using RomRepoMgr.Core.EventArgs;
using RomRepoMgr.Core.Workers;
using RomRepoMgr.Resources;
using RomRepoMgr.Views;
namespace RomRepoMgr.ViewModels;
@@ -65,8 +64,6 @@ public sealed class ImportDatViewModel : ViewModelBase
_worker.WorkFinished += OnWorkerOnWorkFinished;
}
public string Title => Localization.ImportDatTitle;
public string StatusMessage
{
get => _statusMessage;
@@ -121,7 +118,6 @@ public sealed class ImportDatViewModel : ViewModelBase
set => this.RaiseAndSetIfChanged(ref _canClose, value);
}
public string CloseLabel => Localization.CloseLabel;
public ReactiveCommand<Unit, Unit> CloseCommand { get; }
void OnWorkerOnWorkFinished(object sender, MessageEventArgs args) => Dispatcher.UIThread.Post(() =>