Some CA updates.

This commit is contained in:
soukoku
2014-07-01 07:23:55 -04:00
parent 830d8a5497
commit a8891efe3b
13 changed files with 42 additions and 22 deletions

View File

@@ -63,11 +63,11 @@ namespace NTwain
/// <summary>
/// Initializes a new instance of the <see cref="WindowsFormsMessageLoopHook"/> class.
/// </summary>
/// <param name="hwnd">The handle to the app window.</param>
/// <param name="windowHandle">The handle to the app window.</param>
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
public WindowsFormsMessageLoopHook(IntPtr hwnd)
public WindowsFormsMessageLoopHook(IntPtr windowHandle)
{
if (hwnd == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
if (windowHandle == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
if (!System.Windows.Forms.Application.MessageLoop)
{
@@ -78,7 +78,7 @@ namespace NTwain
{
ThrowInvalidOp();
}
Handle = hwnd;
Handle = windowHandle;
SyncContext = sync;
}
internal override string InvalidMessage
@@ -133,11 +133,11 @@ namespace NTwain
/// <summary>
/// Initializes a new instance of the <see cref="WpfMessageLoopHook"/> class.
/// </summary>
/// <param name="hwnd">The handle to the app window.</param>
/// <param name="windowHandle">The handle to the app window.</param>
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
public WpfMessageLoopHook(IntPtr hwnd)
public WpfMessageLoopHook(IntPtr windowHandle)
{
if (hwnd == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
if (windowHandle == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
if (System.Windows.Application.Current == null ||
!System.Windows.Application.Current.Dispatcher.CheckAccess())
@@ -149,7 +149,7 @@ namespace NTwain
{
ThrowInvalidOp();
}
Handle = hwnd;
Handle = windowHandle;
SyncContext = sync;
}
internal override string InvalidMessage