feat: Complete the basic GUI layout.

This commit is contained in:
real-zony
2024-06-28 12:33:14 +08:00
parent 14812bceb7
commit 5ccd8a7c53
19 changed files with 689 additions and 19 deletions

View File

@@ -0,0 +1,49 @@
using ZonyLrcTools.Common.Configuration;
namespace ZonyLrcTools.Desktop.ViewModels.Settings;
public class LyricsProviderViewModel : ViewModelBase
{
private readonly LyricsProviderOptions _options;
public LyricsProviderViewModel(LyricsProviderOptions options)
{
_options = options;
}
public string Name
{
get => _options.Name;
set
{
if (_options.Name != value)
{
_options.Name = value;
}
}
}
public int Priority
{
get => _options.Priority;
set
{
if (_options.Priority != value)
{
_options.Priority = value;
}
}
}
public int Depth
{
get => _options.Depth;
set
{
if (_options.Depth != value)
{
_options.Depth = value;
}
}
}
}