wabbajack/Wabbajack.App/Controls/GameSelectorItemViewModel.cs
2021-09-27 06:42:46 -06:00

23 lines
575 B
C#

using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Wabbajack.App.ViewModels;
using Wabbajack.DTOs;
namespace Wabbajack.App.Controls
{
public class GameSelectorItemViewModel : ViewModelBase, IActivatableViewModel
{
[Reactive]
public Game Game { get; set; }
[Reactive]
public string Name { get; set; }
public GameSelectorItemViewModel(Game game)
{
Activator = new ViewModelActivator();
Game = game;
Name = game.MetaData().HumanFriendlyGameName;
}
}
}