mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Cleaned up wpf sample with some view models.
This commit is contained in:
20
Tests/Tester.WPF/DSVM.cs
Normal file
20
Tests/Tester.WPF/DSVM.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using NTwain.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
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); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user