using Avalonia.Controls;
using Jellyfin2Samsung.ViewModels;
using System;

namespace Jellyfin2Samsung;

public partial class InstallationCompleteWindow : Window
{
    public InstallationCompleteWindow(InstallationCompleteViewModel vm)
    {
        InitializeComponent();
        DataContext = vm;
        vm.RequestClose += OnRequestClose;
    }

    private void OnRequestClose(object? sender, EventArgs e)
    {
        Close();
    }
}