mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-13 03:34:55 +08:00
29 lines
730 B
C#
29 lines
730 B
C#
// 2025/6/23 by Zhe Fang
|
|
|
|
using System;
|
|
using BetterLyrics.WinUI3.Services;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Microsoft.UI.Dispatching;
|
|
|
|
namespace BetterLyrics.WinUI3.ViewModels
|
|
{
|
|
public partial class BaseViewModel : ObservableRecipient, IDisposable
|
|
{
|
|
private protected readonly DispatcherQueue _dispatcherQueue =
|
|
DispatcherQueue.GetForCurrentThread();
|
|
|
|
private protected readonly ISettingsService _settingsService;
|
|
|
|
public BaseViewModel(ISettingsService settingsService)
|
|
{
|
|
IsActive = true;
|
|
_settingsService = settingsService;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
}
|