Exemple #1
0
        /// <summary>
        /// This method is invoked in BeginAcquire. Here the scanning process begins.
        /// </summary>
        private void AcquireThreadStart()
        {
            TwainPreviewForm hidden = new TwainPreviewForm();

            hidden.Controller.ScannedAll += new ScannedAllEventHandler(InternalController_ScannedAll);
            hidden.Controller.ScannedOne += new ScannedOneEventHandler(InternalController_ScannedOne);
            Application.Run(hidden);
        }
Exemple #2
0
        /// <summary>
        /// Shows up a dialog from which the user can choose a twain data source
        /// </summary>
        public void Select()
        {
            TwainPreviewForm hidden = new TwainPreviewForm();

            hidden.Controller.Select();
        }