ntwain/Tests/Tester.WPF/ViewModels/CapVM.cs
2014-04-20 16:57:38 -04:00

30 lines
593 B
C#

using NTwain.Data;
namespace Tester.WPF
{
/// <summary>
/// Wraps a capability as a view model.
/// </summary>
class CapVM
{
public CapabilityId Cap { get; set; }
public string Name
{
get
{
if (Cap > CapabilityId.CustomBase)
{
return "[Custom] " + ((int)Cap - (int)CapabilityId.CustomBase);
}
return Cap.ToString();
}
}
public override string ToString()
{
return Name;
}
}
}