mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-26 13:39:47 +08:00
Moved identities to propevents file.
This commit is contained in:
@@ -8,6 +8,12 @@ namespace SampleConsole
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var twain = new TwainSession(Environment.ProcessPath ?? Assembly.GetExecutingAssembly().Location);
|
||||
twain.StateChanged += Twain_StateChanged;
|
||||
}
|
||||
|
||||
private static void Twain_StateChanged(TwainSession session, TWAINWorkingGroup.STATE state)
|
||||
{
|
||||
Console.WriteLine($"State changed to {state}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user