Пример #1
0
 private void TerminateTw()
 {
     if (tw != null)
     {
         tw.Finish();
         tw = null;
     }
     TwainMessageProcessing = false;
 }
Пример #2
0
 private void HostWindow_Loaded(object sender, RoutedEventArgs e)
 {
     AddMessageHook();
     tw = new Twain();
     tw.Init(WindowHandle);
 }