Files
speckle.xunit.runner.wpf/xunit.runner.wpf/ViewModel/TraitViewModel.cs
T
Jared Parsons e3a17c5308 Respond to PR feedback
Handled everything but the race condition.  Going to fix that in a
separate commit.
2015-08-27 16:41:14 -07:00

32 lines
721 B
C#

using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace xunit.runner.wpf.ViewModel
{
public sealed class TraitViewModel : ViewModelBase
{
private bool _isSelected;
public string Name { get; }
public string Value { get; }
public string DisplayName { get; }
public bool IsSelected
{
get { return _isSelected; }
set { Set(ref _isSelected, value); }
}
public TraitViewModel(string name, string value)
{
Name = name;
Value = value;
DisplayName = $"{Name}={Value}";
}
}
}