mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
#102 allow setting CapFeederEnabled to false.
This commit is contained in:
parent
b432ff3126
commit
b2af80d985
src/NTwain
@ -2055,15 +2055,11 @@ namespace NTwain
|
|||||||
ItemType = ItemType.Bool
|
ItemType = ItemType.Bool
|
||||||
};
|
};
|
||||||
|
|
||||||
// we will never set feeder off, only autofeed and autoscan
|
using (TWCapability enabled = new TWCapability(CapabilityId.CapFeederEnabled, one))
|
||||||
// but if it is true then enable feeder needs to be set first
|
|
||||||
if (value == BoolType.True)
|
|
||||||
{
|
{
|
||||||
using (TWCapability enabled = new TWCapability(CapabilityId.CapFeederEnabled, one))
|
rc = _source.DGControl.Capability.Set(enabled);
|
||||||
{
|
|
||||||
rc = _source.DGControl.Capability.Set(enabled);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// to really use feeder we must also set autofeed or autoscan, but only
|
// to really use feeder we must also set autofeed or autoscan, but only
|
||||||
// for one of them since setting autoscan also sets autofeed
|
// for one of them since setting autoscan also sets autofeed
|
||||||
if (CapAutoScan.CanSet)
|
if (CapAutoScan.CanSet)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyCopyright("Copyright \x00a9 Yin-Chun Wang 2012-2017")]
|
[assembly: AssemblyCopyright("Copyright \x00a9 Yin-Chun Wang 2012-2018")]
|
||||||
[assembly: AssemblyCompany("Yin-Chun Wang")]
|
[assembly: AssemblyCompany("Yin-Chun Wang")]
|
||||||
|
|
||||||
[assembly: AssemblyVersion(NTwain.VersionInfo.Release)]
|
[assembly: AssemblyVersion(NTwain.VersionInfo.Release)]
|
||||||
@ -23,7 +23,7 @@ namespace NTwain
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The build release version number.
|
/// The build release version number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string Build = "3.5.0"; // change this for each nuget release
|
public const string Build = "3.5.2"; // change this for each nuget release
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user