mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 17:22:26 +08:00
Made IsOpen check current source.
This commit is contained in:
parent
54a913893a
commit
b5cd2f6e17
@ -157,7 +157,7 @@ namespace NTwain
|
||||
/// <value>
|
||||
/// <c>true</c> if this data source is open; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
public bool IsOpen { get { return _session.IsSourceOpen; } }
|
||||
public bool IsOpen { get { return _session.IsSourceOpen && _session.CurrentSource == this; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current settings (CustomDSData) of this source if supported.
|
||||
|
Loading…
Reference in New Issue
Block a user