PluginFeature
This commit is contained in:
27
Pilz.Plugins.Advanced/PluginFeature.cs
Normal file
27
Pilz.Plugins.Advanced/PluginFeature.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user