change UI to UI.WinForms
This commit is contained in:
25
Pilz.Plugins.Advanced.UI.WinForms/PluginModule.cs
Normal file
25
Pilz.Plugins.Advanced.UI.WinForms/PluginModule.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Pilz.UI.Dialogs;
|
||||
using Pilz.UI.WinForms.Extensions;
|
||||
|
||||
namespace Pilz.Plugins.Advanced.UI.WinForms;
|
||||
|
||||
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