mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 12:46:43 +08:00
30 lines
593 B
C#
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;
|
|
}
|
|
}
|
|
}
|