Files
annotations/Azaion.Annotator/AutodetectDialog.xaml.cs
T
Alex Bezdieniezhnykh addf7ccc11 polish autodetection
2024-11-02 20:59:51 +02:00

22 lines
529 B
C#

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