mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:36:31 +00:00
22 lines
529 B
C#
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();
|
|
} |