mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-13 03:34:55 +08:00
28 lines
681 B
C#
28 lines
681 B
C#
// 2025/6/23 by Zhe Fang
|
|
|
|
using BetterLyrics.WinUI3.Hooks;
|
|
|
|
using BetterLyrics.WinUI3.Services.GSMTCService;
|
|
using BetterLyrics.WinUI3.Views;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
namespace BetterLyrics.WinUI3.ViewModels
|
|
{
|
|
public partial class NowPlayingPageViewModel : BaseViewModel
|
|
{
|
|
public IGSMTCService MediaSessionsService { get; private set; }
|
|
|
|
public NowPlayingPageViewModel(IGSMTCService mediaSessionsService)
|
|
{
|
|
MediaSessionsService = mediaSessionsService;
|
|
}
|
|
|
|
[RelayCommand]
|
|
private static void OpenSettingsWindow()
|
|
{
|
|
WindowHook.OpenOrShowWindow<SettingsWindow>();
|
|
}
|
|
|
|
}
|
|
}
|