rename Pilz.Plugins.Advanced to Pilz.Features
This commit is contained in:
26
Pilz.UI.WinForms.Features/PluginModule.cs
Normal file
26
Pilz.UI.WinForms.Features/PluginModule.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Pilz.Features;
|
||||
using Pilz.UI.WinForms.Dialogs;
|
||||
using Pilz.UI.WinForms.Extensions;
|
||||
|
||||
namespace Pilz.UI.WinForms.Features;
|
||||
|
||||
public abstract class PluginModule : PluginModule<PluginModuleUI>
|
||||
{
|
||||
protected PluginModule(string type, string identifier) : base(type, identifier)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected PluginModule(string type, string identifier, string? name) : base(type, identifier, name)
|
||||
{
|
||||
}
|
||||
|
||||
public override void ShowUI(PluginFunctionParameter? @params)
|
||||
{
|
||||
if (CreateNewUI(@params) is PluginModuleUI ui)
|
||||
{
|
||||
ui.BackColor = Color.Transparent;
|
||||
DialogBase.Show(ui, Name!, Image!.ToIcon()!);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user