polish autodetection

This commit is contained in:
Alex Bezdieniezhnykh
2024-11-02 20:59:51 +02:00
parent 418a2116b7
commit addf7ccc11
6 changed files with 90 additions and 27 deletions
+7 -4
View File
@@ -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();
}