using NTwain.Data; namespace Tester.WPF { /// /// Wraps a capability as a view model. /// 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; } } }