PluginFeature

This commit is contained in:
2023-12-05 13:52:35 +01:00
parent 066d5a1a81
commit 0ecbde3fd7
7 changed files with 164 additions and 126 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telerik.WinControls;
namespace Pilz.Plugins.Advanced
{
public abstract class PluginFeature
{
public string Type { get; init; }
public virtual string? Name { get; init; }
public virtual RadSvgImage? Icon { get; set; }
public virtual bool Enabled { get; set; } = true;
protected PluginFeature(string functionType)
{
Type = functionType;
}
protected PluginFeature(string functionType, string? functionName) : this(functionType)
{
Name = functionName;
}
}
}