mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-25 19:19:03 +08:00
Test idea of wrapping source identity into .net class.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using NTwain.Data;
|
||||
using NTwain;
|
||||
using NTwain.Data;
|
||||
|
||||
namespace Tester.WPF
|
||||
{
|
||||
@@ -7,9 +8,9 @@ namespace Tester.WPF
|
||||
/// </summary>
|
||||
class DSVM
|
||||
{
|
||||
public TWIdentity DS { get; set; }
|
||||
public TwainSource DS { get; set; }
|
||||
|
||||
public string Name { get { return DS.ProductName; } }
|
||||
public string Name { get { return DS.Name; } }
|
||||
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