mirror of
https://github.com/soukoku/ntwain.git
synced 2025-07-17 11:03:58 +08:00
17 lines
439 B
C#
17 lines
439 B
C#
![]() |
using NTwain.Data;
|
|||
|
|
|||
|
namespace Tester.WPF
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Wraps a data source as view model.
|
|||
|
/// </summary>
|
|||
|
class DSVM
|
|||
|
{
|
|||
|
public TWIdentity DS { get; set; }
|
|||
|
|
|||
|
public string Name { get { return DS.ProductName; } }
|
|||
|
public string Version { get { return DS.Version.Info; } }
|
|||
|
public string Protocol { get { return string.Format("{0}.{1}", DS.ProtocolMajor, DS.ProtocolMinor); } }
|
|||
|
}
|
|||
|
}
|