From 8f85c1a05bf7ab8ebf03a89e4b14ee3b27ad71b8 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Fri, 5 Jul 2024 08:07:11 +0000 Subject: [PATCH] Pilz.UI.Telerik aktualisieren --- Pilz.UI.Telerik.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Pilz.UI.Telerik.md b/Pilz.UI.Telerik.md index be17160..1bfb8d8 100644 --- a/Pilz.UI.Telerik.md +++ b/Pilz.UI.Telerik.md @@ -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. ```csharp -RadFlyoutBase.Show(this, strTitle, svgSymbol); +RadFlyoutBase.Show(radListView_Accounts , strTitle, svgSymbol); ``` ### Events for prepair & result callback @@ -70,7 +70,7 @@ public AccountManagerPage() 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) { - 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. ```csharp -var flyout = RadDialogBase.Show(radListView_Accounts, strTitle, svgSymbol); +var flyout = RadDialogBase.Show(this, strTitle, svgSymbol); if (flyout.Result == DialogResult.OK) { // ... @@ -120,7 +120,7 @@ public AccountManagerPage() 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) { - 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) { // ... }