2020-04-12 22:29:24 +01:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using Aaru.Gui.ViewModels;
|
|
|
|
|
|
using Avalonia;
|
|
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
|
using Avalonia.Markup.Xaml;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Aaru.Gui.Views
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ImageEntropyWindow : Window
|
|
|
|
|
|
{
|
|
|
|
|
|
public ImageEntropyWindow()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
this.AttachDevTools();
|
|
|
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void InitializeComponent() => AvaloniaXamlLoader.Load(this);
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnClosing(CancelEventArgs e)
|
|
|
|
|
|
{
|
2020-04-13 01:19:55 +01:00
|
|
|
|
(DataContext as ImageEntropyViewModel)?.ExecuteStopCommand();
|
2020-04-12 22:29:24 +01:00
|
|
|
|
base.OnClosing(e);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|