LANCommander/LANCommander.Launcher/ViewModels/Components/GenreCarouselButtomViewModel.cs
Pat Hartl b183e4b18c Remove old launcher, rename Avalonia launcher
Also adds ARM builds for Linux + Windows launcher
2026-06-06 05:49:24 -05:00

27 lines
No EOL
647 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
namespace LANCommander.Launcher.ViewModels.Components;
public partial class GenreCarouselButtomViewModel : ViewModelBase
{
[ObservableProperty]
private string? _backgroundPath;
[ObservableProperty]
private bool _hasBackground;
[ObservableProperty]
private string? _name;
public GenreCarouselButtomViewModel()
{
}
public GenreCarouselButtomViewModel(SDK.Models.Genre genre, string? backgroundPath = null)
{
Name = genre.Name;
BackgroundPath = backgroundPath;
HasBackground = !string.IsNullOrEmpty(backgroundPath);
}
}