add Pilz.UI.Telerik.Symbols

This commit is contained in:
Pilzinsel64
2025-04-16 14:06:41 +02:00
parent 3a266c0e51
commit b65af65a26
5 changed files with 83 additions and 0 deletions

View 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";
}
}

View 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";
}
}

View 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>

View 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();
}

View File

@@ -45,6 +45,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pilz.Plugins.Advanced.UI.Te
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pilz.Extensions", "Pilz.Extensions\Pilz.Extensions.csproj", "{63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pilz.Extensions", "Pilz.Extensions\Pilz.Extensions.csproj", "{63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pilz.UI.Telerik.Symbols", "Pilz.UI.Telerik.Symbols\Pilz.UI.Telerik.Symbols.csproj", "{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -221,6 +223,14 @@ Global
{63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}.Release|Any CPU.Build.0 = Release|Any CPU {63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}.Release|Any CPU.Build.0 = Release|Any CPU
{63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}.Release|x86.ActiveCfg = Release|Any CPU {63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}.Release|x86.ActiveCfg = Release|Any CPU
{63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}.Release|x86.Build.0 = Release|Any CPU {63DA7581-F35E-4EDD-BEAE-01E281B0BDC3}.Release|x86.Build.0 = Release|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Debug|x86.ActiveCfg = Debug|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Debug|x86.Build.0 = Debug|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Release|Any CPU.Build.0 = Release|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Release|x86.ActiveCfg = Release|Any CPU
{9F10C26F-1D9F-4B0B-8A7A-73A6082C5BF7}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE