add ability to show DialogBaseForm with custom created content

This commit is contained in:
2023-10-19 11:47:03 +02:00
parent 4a4398ed84
commit 45ce141d9e
2 changed files with 33 additions and 17 deletions

View File

@@ -18,6 +18,11 @@ namespace Pilz.UI.Telerik.Dialogs
FormClosed += DialogBaseForm_FormClosed;
}
public DialogBaseForm(FlyoutDialogBase? dialogPanel) : this()
{
DialogPanel = dialogPanel;
}
private void DialogBaseForm_Load(object? sender, EventArgs e)
{
if (DialogPanel is ILoadContent iLoadContent)