mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 19:56:31 +00:00
polish autodetection
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Azaion.Annotator;
|
||||
|
||||
@@ -7,13 +8,15 @@ 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();
|
||||
}
|
||||
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) => Close();
|
||||
}
|
||||
Reference in New Issue
Block a user