FModel/FModel/Views/AesManager.xaml.cs
Marlon 14e05da2e0
Some checks failed
FModel QA Builder / build (push) Has been cancelled
fixed line endings to lf to match editorconfig
2026-01-27 14:17:43 +01:00

35 lines
866 B
C#

using System.ComponentModel;
using System.Windows;
using FModel.Services;
using FModel.ViewModels;
namespace FModel.Views;
public partial class AesManager
{
private ApplicationViewModel _applicationView => ApplicationService.ApplicationView;
public AesManager()
{
DataContext = _applicationView;
InitializeComponent();
}
private void OnClick(object sender, RoutedEventArgs e)
{
Close();
}
private async void OnRefreshAes(object sender, RoutedEventArgs e)
{
await _applicationView.CUE4Parse.RefreshAes();
await _applicationView.AesManager.InitAes();
_applicationView.AesManager.HasChange = true; // yes even if nothing actually changed
}
private async void OnClosing(object sender, CancelEventArgs e)
{
await _applicationView.UpdateProvider(false);
}
}