add Pilz.UI.Telerik.Symbols
This commit is contained in:
17
Pilz.UI.Telerik.Symbols/Factories/ColorFactory.cs
Normal file
17
Pilz.UI.Telerik.Symbols/Factories/ColorFactory.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Pilz.SymbolPacks.Color;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Pilz.UI.Telerik.Symbols.Factories;
|
||||
|
||||
internal class ColorFactory : RadSymbolFactory<SymbolsColor>
|
||||
{
|
||||
public override Assembly GetImageResourceAssembly()
|
||||
{
|
||||
return typeof(SymbolsColor).Assembly;
|
||||
}
|
||||
|
||||
public override string GetImageRessourcePath(SymbolsColor svgImage)
|
||||
{
|
||||
return $"{typeof(SymbolsColor).Namespace}.Files.{svgImage}.svg";
|
||||
}
|
||||
}
|
||||
17
Pilz.UI.Telerik.Symbols/Factories/FluentFactory.cs
Normal file
17
Pilz.UI.Telerik.Symbols/Factories/FluentFactory.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Pilz.SymbolPacks.Fluent;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Pilz.UI.Telerik.Symbols.Factories;
|
||||
|
||||
internal class FluentFactory : RadSymbolFactory<SymbolsFluent>
|
||||
{
|
||||
public override Assembly GetImageResourceAssembly()
|
||||
{
|
||||
return typeof(SymbolsFluent).Assembly;
|
||||
}
|
||||
|
||||
public override string GetImageRessourcePath(SymbolsFluent svgImage)
|
||||
{
|
||||
return $"{typeof(SymbolsFluent).Namespace}.Files.{svgImage}.svg";
|
||||
}
|
||||
}
|
||||
28
Pilz.UI.Telerik.Symbols/Pilz.UI.Telerik.Symbols.csproj
Normal file
28
Pilz.UI.Telerik.Symbols/Pilz.UI.Telerik.Symbols.csproj
Normal file
@@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>1.0.0</Version>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Pilz.SymbolPacks.Color" Version="1.0.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Pilz.SymbolPacks.Fluent" Version="1.0.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Pilz.UI.Telerik\Pilz.UI.Telerik.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
11
Pilz.UI.Telerik.Symbols/RadSymbols.cs
Normal file
11
Pilz.UI.Telerik.Symbols/RadSymbols.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Pilz.SymbolPacks.Color;
|
||||
using Pilz.SymbolPacks.Fluent;
|
||||
using Pilz.UI.Telerik.Symbols.Factories;
|
||||
|
||||
namespace Pilz.UI.Telerik.Symbols;
|
||||
|
||||
public static class RadSymbols
|
||||
{
|
||||
public static IRadSymbolFactory<SymbolsColor> Color { get; } = new ColorFactory();
|
||||
public static IRadSymbolFactory<SymbolsFluent> Fluent { get; } = new FluentFactory();
|
||||
}
|
||||
Reference in New Issue
Block a user