prefix Telerik-based type names with "Rad"

This commit is contained in:
2024-06-10 09:48:53 +02:00
parent 99a327f4ed
commit 9e8ca9140f
14 changed files with 56 additions and 48 deletions

View File

@@ -0,0 +1,32 @@
using Telerik.WinControls.UI;
namespace Pilz.UI.Telerik.Dialogs;
public partial class RadDialogBase : RadForm
{
public RadFlyoutBase? DialogPanel { get; private set; }
private RadDialogBase()
{
Load += DialogBaseForm_Load;
FormClosed += DialogBaseForm_FormClosed;
}
public RadDialogBase(RadFlyoutBase? dialogPanel) : this()
{
DialogPanel = dialogPanel;
}
private void DialogBaseForm_Load(object? sender, EventArgs e)
{
if (DialogPanel is ILoadContent iLoadContent)
iLoadContent.LoadContent();
DialogLoading?.Invoke(new DialogLoadingEventArgs(this));
}
private void DialogBaseForm_FormClosed(object? sender, FormClosedEventArgs e)
{
DialogClosed?.Invoke(new DialogClosedEventArgs(this));
}
}