mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Some checks failed
FModel QA Builder / build (push) Has been cancelled
+ filter by types, find by references (UE5+), and a lot of other improvements Co-authored-by: Asval <asval.contactme@gmail.com> Co-authored-by: LongerWarrior <LongerWarrior@gmail.com>
27 lines
620 B
C#
27 lines
620 B
C#
using System.Windows;
|
|
using FModel.ViewModels;
|
|
using FModel.Views.Resources.Controls;
|
|
|
|
namespace FModel.Views;
|
|
|
|
public partial class UpdateView
|
|
{
|
|
public UpdateView()
|
|
{
|
|
DataContext = new UpdateViewModel();
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OnLoaded(object sender, RoutedEventArgs e)
|
|
{
|
|
if (DataContext is not UpdateViewModel viewModel) return;
|
|
_ = viewModel.LoadAsync();
|
|
}
|
|
|
|
private void OnDownloadLatest(object sender, RoutedEventArgs e)
|
|
{
|
|
if (DataContext is not UpdateViewModel viewModel) return;
|
|
viewModel.DownloadLatest();
|
|
}
|
|
}
|