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