demo/Demo/UI/ChangeModeDialog.axaml.cs

22 lines
496 B
C#
Raw Normal View History

2024-09-05 13:22:57 +00:00
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Demo;
public partial class ChangeModeDialog : Window
{
public ChangeModeDialog()
{
InitializeComponent();
}
private void SendButton_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
{
if(TextBoxCode.Text == "0000") Close(true);
}
private void DeclineButton_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
{
Close(false);
}
}