mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Hid some more triplets.
This commit is contained in:
@@ -139,7 +139,7 @@ namespace NTwain
|
||||
TWIdentity id;
|
||||
if (DGControl.Identity.GetDefault(out id) == ReturnCode.Success)
|
||||
{
|
||||
return new TwainSource(this, id);
|
||||
return TwainSource.GetInstance(this, id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -162,7 +162,7 @@ namespace NTwain
|
||||
TWIdentity id;
|
||||
if (DGControl.Identity.UserSelect(out id) == ReturnCode.Success)
|
||||
{
|
||||
return new TwainSource(this, id);
|
||||
return TwainSource.GetInstance(this, id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -311,7 +311,7 @@ namespace NTwain
|
||||
var rc = DGControl.Identity.GetFirst(out srcId);
|
||||
while (rc == ReturnCode.Success)
|
||||
{
|
||||
yield return new TwainSource(this, srcId);
|
||||
yield return TwainSource.GetInstance(this, srcId);
|
||||
rc = DGControl.Identity.GetNext(out srcId);
|
||||
}
|
||||
}
|
||||
@@ -327,6 +327,18 @@ namespace NTwain
|
||||
return stat;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the manager status. Only call this at state 3 or higher.
|
||||
/// </summary>
|
||||
/// <param name="session">The session.</param>
|
||||
/// <returns></returns>
|
||||
public TWStatusUtf8 GetStatusUtf8()
|
||||
{
|
||||
TWStatusUtf8 stat;
|
||||
DGControl.StatusUtf8.GetManager(out stat);
|
||||
return stat;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user