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();
|
||||||
|
}
|
||||||
10
Pilz.sln
10
Pilz.sln
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user