modernize repository
This commit is contained in:
23
Project64Savestater/AppGlobals.cs
Normal file
23
Project64Savestater/AppGlobals.cs
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user