mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
22 lines
637 B
C#
22 lines
637 B
C#
using BetterLyrics.WinUI3.Models.Settings;
|
|
using BetterLyrics.WinUI3.Services.SettingsService;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace BetterLyrics.WinUI3.ViewModels
|
|
{
|
|
public partial class LyricsWindowSwitchControlViewModel : BaseViewModel
|
|
{
|
|
private readonly ISettingsService _settingsService;
|
|
|
|
[ObservableProperty]
|
|
public partial AppSettings AppSettings { get; set; }
|
|
|
|
public LyricsWindowSwitchControlViewModel(ISettingsService settingsService)
|
|
{
|
|
_settingsService = settingsService;
|
|
AppSettings = _settingsService.AppSettings;
|
|
}
|
|
|
|
}
|
|
}
|