demo/Demo/UI/ChangeModeDialog.axaml.cs
2024-09-05 16:22:57 +03:00

22 lines
496 B
C#

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);
}
}