mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 16:10:16 -04:00

Refactor the Database Service (no more enum, ...) Restored the Donate page with Paypal web page Added (but not working) MS App Center integration Corrected tests accordingly WIP AOP to detect database changes
18 lines
520 B
C#
18 lines
520 B
C#
using Windows.ApplicationModel.Resources;
|
|
using ModernKeePass.Interfaces;
|
|
|
|
namespace ModernKeePass.Services
|
|
{
|
|
public class ResourcesService: IResourceService
|
|
{
|
|
private const string ResourceFileName = "CodeBehind";
|
|
private readonly ResourceLoader _resourceLoader = ResourceLoader.GetForCurrentView();
|
|
|
|
public string GetResourceValue(string key)
|
|
{
|
|
var resource = _resourceLoader.GetString($"/{ResourceFileName}/{key}");
|
|
return resource;
|
|
}
|
|
}
|
|
}
|