using System.Windows; using System.Windows.Input; namespace Azaion.Annotator; public partial class AutodetectDialog : Window { public AutodetectDialog() { InitializeComponent(); KeyUp += (sender, args) => { if (args.Key == Key.Escape) Close(); }; } public void Log(string message) => TextBlockLog.Text = TextBlockLog.Text + Environment.NewLine + message; private void ButtonBase_OnClick(object sender, RoutedEventArgs e) => Close(); }