Moved wrapped capabilities into its own class to reduce DataSource complexity.

This commit is contained in:
soukoku
2015-02-20 18:17:51 -05:00
parent 59e8b996de
commit b757cc4a42
14 changed files with 288 additions and 322 deletions

View File

@@ -68,7 +68,7 @@ namespace NTwain.Internals
// some DS end up getting none but we will assume it's image
if (xferImage)
{
var mech = session.CurrentSource.ICapXferMech.GetCurrent();
var mech = session.CurrentSource.Capabilities.ICapXferMech.GetCurrent();
switch (mech)
{
@@ -90,7 +90,7 @@ namespace NTwain.Internals
}
if (xferAudio)
{
var mech = session.CurrentSource.ACapXferMech.GetCurrent();
var mech = session.CurrentSource.Capabilities.ACapXferMech.GetCurrent();
switch (mech)
{
case XferMech.File: