more extensions

This commit is contained in:
Pilzinsel64
2024-07-29 09:54:37 +02:00
parent 9826af9b45
commit c334ef99c6
3 changed files with 57 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
using Pilz.UI.Dialogs;
using System.Diagnostics.CodeAnalysis;
namespace Pilz.UI.Extensions;
public static class FlyoutBaseExtensions
{
public static bool IsValid([NotNullWhen(true)] this FlyoutBase @this)
{
return @this != null && @this.Result == DialogResult.OK;
}
}