Pilz.UI.Telerik aktualisieren
@@ -54,7 +54,7 @@ private void RadButton_Cancel_Click(object sender, EventArgs e)
|
|||||||
Use the static `RadFlyoutBase.Show<>()` method for opening a flyout. This uses `RadFlyout` as base and will create a new instance of the provided type.
|
Use the static `RadFlyoutBase.Show<>()` method for opening a flyout. This uses `RadFlyout` as base and will create a new instance of the provided type.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
RadFlyoutBase.Show<MyFlyout>(this, strTitle, svgSymbol);
|
RadFlyoutBase.Show<MyFlyout>(radListView_Accounts , strTitle, svgSymbol);
|
||||||
```
|
```
|
||||||
|
|
||||||
### Events for prepair & result callback
|
### Events for prepair & result callback
|
||||||
@@ -70,7 +70,7 @@ public AccountManagerPage()
|
|||||||
|
|
||||||
private void RadFlyoutBase_FlyoutCreated(FlyoutCreatedEventArgs e)
|
private void RadFlyoutBase_FlyoutCreated(FlyoutCreatedEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Parent == this && e.Content is MyFlyout flyout && flyout.Result == DialogResult.OK)
|
if (RadFlyoutBase.ParentContext == radListView_Accounts && e.Content is MyFlyout flyout && flyout.Result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ private void RadFlyoutBase_FlyoutCreated(FlyoutCreatedEventArgs e)
|
|||||||
|
|
||||||
private void RadFlyoutBase_FlyoutClosed(FlyoutClosedEventArgs e)
|
private void RadFlyoutBase_FlyoutClosed(FlyoutClosedEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Parent == this && e.Content is MyFlyout flyout && flyout.Result == DialogResult.OK)
|
if (RadFlyoutBase.ParentContext == radListView_Accounts && e.Content is MyFlyout flyout && flyout.Result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ Ensure you unregister your handlers from the event on Dispose or deconstructor!
|
|||||||
Use the static `RadDialogBase.Show<>()` or `RadDialogBase.Show()` methods to open a dialog. This will use the provided istance or create a new one of the provided type.
|
Use the static `RadDialogBase.Show<>()` or `RadDialogBase.Show()` methods to open a dialog. This will use the provided istance or create a new one of the provided type.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
var flyout = RadDialogBase.Show<MyFlyout>(radListView_Accounts, strTitle, svgSymbol);
|
var flyout = RadDialogBase.Show<MyFlyout>(this, strTitle, svgSymbol);
|
||||||
if (flyout.Result == DialogResult.OK)
|
if (flyout.Result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
@@ -120,7 +120,7 @@ public AccountManagerPage()
|
|||||||
|
|
||||||
private void RadDialogBase_DialogLoading(DialogLoadingEventArgs e)
|
private void RadDialogBase_DialogLoading(DialogLoadingEventArgs e)
|
||||||
{
|
{
|
||||||
if (RadFlyoutBase.ParentContext == this && e.Content is MyFlyout flyout)
|
if (e.Parent == this && e.Content is MyFlyout flyout)
|
||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
@@ -128,7 +128,7 @@ private void RadDialogBase_DialogLoading(DialogLoadingEventArgs e)
|
|||||||
|
|
||||||
private void RadDialogBase_DialogClosed(DialogClosedEventArgs e)
|
private void RadDialogBase_DialogClosed(DialogClosedEventArgs e)
|
||||||
{
|
{
|
||||||
if (RadFlyoutBase.ParentContext == this && e.Content is MyFlyout flyout && flyout.Result == DialogResult.OK)
|
if (e.Parent == this && e.Content is MyFlyout flyout && flyout.Result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user