Some name-breaking changes so master is now v3. V2 will continue to be the code on nuget for now.

This commit is contained in:
soukoku
2014-09-15 07:24:13 -04:00
parent 0cd02ac16e
commit 92063d2b84
62 changed files with 422 additions and 267 deletions

View File

@@ -12,11 +12,11 @@ namespace NTwain
/// <summary>
/// General interface for a TWAIN session.
/// </summary>
public interface ITwainSession : INotifyPropertyChanged
public interface ITwainSession : IEnumerable<DataSource>, INotifyPropertyChanged
{
/// <summary>
/// [Experimental] Gets or sets the optional synchronization context when not specifying a <see cref="MessageLoopHook"/> on <see cref="Open"/>.
/// [Experimental] Gets or sets the optional synchronization context when not specifying a <see cref="MessageLoopHook"/> on <see cref="Open()"/>.
/// This allows events to be raised on the thread associated with the context. This is experimental is not recommended for use.
/// </summary>
/// <value>
@@ -39,7 +39,7 @@ namespace NTwain
/// <value>
/// The current source.
/// </value>
TwainSource CurrentSource { get; }
DataSource CurrentSource { get; }
/// <summary>
/// Gets or sets the default source for this application.
@@ -49,7 +49,7 @@ namespace NTwain
/// <value>
/// The default source.
/// </value>
TwainSource DefaultSource { get; set; }
DataSource DefaultSource { get; set; }
/// <summary>
/// Gets the current state number as defined by the TWAIN spec.
@@ -83,7 +83,7 @@ namespace NTwain
/// This is not recommended and is only included for completeness.
/// </summary>
/// <returns></returns>
TwainSource ShowSourceSelector();
DataSource ShowSourceSelector();
/// <summary>
@@ -120,7 +120,7 @@ namespace NTwain
/// Gets list of sources available in the system.
/// </summary>
/// <returns></returns>
IEnumerable<TwainSource> GetSources();
IEnumerable<DataSource> GetSources();
/// <summary>
/// Quick shortcut to open a source.