2021-09-27 12:42:46 +00:00
|
|
|
using ReactiveUI;
|
|
|
|
using ReactiveUI.Fody.Helpers;
|
|
|
|
using Wabbajack.App.ViewModels;
|
|
|
|
using Wabbajack.DTOs;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.App.Controls;
|
|
|
|
|
|
|
|
public class GameSelectorItemViewModel : ViewModelBase, IActivatableViewModel
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
public GameSelectorItemViewModel(Game game)
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
Activator = new ViewModelActivator();
|
|
|
|
Game = game;
|
|
|
|
Name = game.MetaData().HumanFriendlyGameName;
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|
2021-10-23 16:51:17 +00:00
|
|
|
|
|
|
|
[Reactive] public Game Game { get; set; }
|
|
|
|
|
|
|
|
[Reactive] public string Name { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|