modernize repository

This commit is contained in:
2024-10-27 08:45:49 +01:00
parent 32b110fca5
commit 076277bd60
37 changed files with 1389 additions and 1491 deletions

View File

@@ -0,0 +1,23 @@
using Pilz.UI.Telerik.Symbols;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace PJ64Savestater;
public static class AppGlobals
{
public static IRadSymbolFactory<AppSymbols> Symbols { get; } = new AppSymbolFactory();
private class AppSymbolFactory : RadSymbolFactory<AppSymbols>
{
public override Assembly GetImageResourceAssembly()
{
return Assembly.GetExecutingAssembly();
}
public override string GetImageRessourcePath(AppSymbols svgImage)
{
return $"{typeof(AppGlobals).Namespace}.Symbols.{svgImage}.svg";
}
}
}