started wrapping general caps.

This commit is contained in:
soukoku
2014-11-10 21:45:32 -05:00
parent bdefa03579
commit 958a0bdee7
7 changed files with 400 additions and 107 deletions

View File

@@ -150,9 +150,9 @@ namespace NTwain
static readonly CapabilityId[] _emptyCapList = new CapabilityId[0];
private IList<CapabilityId> _supportedCaps;
private IList<CapabilityId> _supportedCapsList;
/// <summary>
/// Gets the supported caps for this source.
/// Gets the list of supported caps for this source.
/// </summary>
/// <value>
/// The supported caps.
@@ -161,15 +161,15 @@ namespace NTwain
{
get
{
if (_supportedCaps == null && _session.State > 3)
if (_supportedCapsList == null && _session.State > 3)
{
_supportedCaps = CapGet(CapabilityId.CapSupportedCaps).CastToEnum<CapabilityId>(false);
_supportedCapsList = CapSupportedCaps.Get();// CapGet(CapabilityId.CapSupportedCaps).CastToEnum<CapabilityId>(false);
}
return _supportedCaps ?? _emptyCapList;
return _supportedCapsList ?? _emptyCapList;
}
private set
{
_supportedCaps = value;
_supportedCapsList = value;
//OnPropertyChanged("SupportedCaps");
}
}