Made IsOpen check current source.

This commit is contained in:
soukoku 2015-03-23 07:20:06 -04:00
parent 54a913893a
commit b5cd2f6e17

View File

@ -157,7 +157,7 @@ namespace NTwain
/// <value> /// <value>
/// <c>true</c> if this data source is open; otherwise, <c>false</c>. /// <c>true</c> if this data source is open; otherwise, <c>false</c>.
/// </value> /// </value>
public bool IsOpen { get { return _session.IsSourceOpen; } } public bool IsOpen { get { return _session.IsSourceOpen && _session.CurrentSource == this; } }
/// <summary> /// <summary>
/// Gets or sets the current settings (CustomDSData) of this source if supported. /// Gets or sets the current settings (CustomDSData) of this source if supported.