XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

HaloPixelToolBox

【WinUI3】基于USB HID通讯的花再音响工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
using Windows.Foundation;
using HaloPixelToolBox.Client.Interface.Services;
using XFEExtension.NetCore.WinUIHelper.Implements.Services;

namespace HaloPixelToolBox.Client.Implements.Services;

public class CloseWindowService : GlobalServiceBase, ICloseWindowService
{
    Window? window;
    public event TypedEventHandler<object, WindowEventArgs>? Closed;

    public void Initialize(Window window)
    {
        this.window = window;
        this.window.Closed += (e, s) => Closed?.Invoke(e, s);
    }
}