add support for REST-ful API building
- allow parameters within url - allow different methods other then just POST -> still needs to be tested!
This commit is contained in:
32
Pilz.UI/Controls/ConfigurationManager/ConfigurationPanel.cs
Normal file
32
Pilz.UI/Controls/ConfigurationManager/ConfigurationPanel.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace Pilz.UI.Controls.ConfigurationManager;
|
||||
|
||||
public class ConfigurationPanel : TableLayoutPanel
|
||||
{
|
||||
private readonly List<ConfigurationEntry> entries = [];
|
||||
|
||||
public ConfigurationEntry CreateEntry(string name, string title)
|
||||
{
|
||||
return CreateEntry(name, title, null);
|
||||
}
|
||||
|
||||
public ConfigurationEntry CreateEntry(string name, string title, Action? create)
|
||||
{
|
||||
return CreateEntry(new(name, title, ));
|
||||
}
|
||||
|
||||
public ConfigurationEntry CreateEntry(ConfigurationEntry entry)
|
||||
{
|
||||
entries.Add(entry);
|
||||
return entry;
|
||||
}
|
||||
|
||||
internal protected void Build(ConfigurationManager manager)
|
||||
{
|
||||
foreach (var entry in entries)
|
||||
{
|
||||
var control = ;
|
||||
entry.Listener.Initialize();
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user