Initial move from old twain-in-dotnet.

This commit is contained in:
soukoku
2014-04-02 19:01:21 -04:00
parent d34b359f8d
commit 0a39a47d3b
116 changed files with 38426 additions and 0 deletions

34
NTwain/Triplets/OpBase.cs Normal file
View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NTwain.Values;
namespace NTwain.Triplets
{
/// <summary>
/// Base class for grouping triplet operations messages.
/// </summary>
public abstract class OpBase
{
TwainSession _session;
/// <summary>
/// Initializes a new instance of the <see cref="OpBase" /> class.
/// </summary>
/// <param name="session">The session.</param>
/// <exception cref="System.ArgumentNullException"></exception>
protected OpBase(TwainSession session)
{
if (session == null) { throw new ArgumentNullException("session"); }
_session = session;
}
/// <summary>
/// Gets the twain session.
/// </summary>
/// <value>
/// The session.
/// </value>
protected TwainSession Session { get { return _session; } }
}
}