prefix Telerik-based type names with "Rad"
This commit is contained in:
32
Pilz.UI.Telerik/Dialogs/RadDialogBase.cs
Normal file
32
Pilz.UI.Telerik/Dialogs/RadDialogBase.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user