24 lines
635 B
C#
24 lines
635 B
C#
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";
|
|
}
|
|
}
|
|
}
|