Пример #1
0
        private void btScan_Click(object sender, EventArgs e)
        {
            SampleScan form= new SampleScan(_host,_auto_logout_time,_sbset);
            form.ShowDialog();

            try
            {
                Files = null;
                Files = _host.GetImageFiles();
                if (Files.Length > 0)
                {
                    imagePreview1.Files = Files;
                    labelPage.Text = Files.Length.ToString() + " page";
                    imagePreview1.RefreshPreview();
                    gbtDelete.ButtonEnable = true;
                    gbtDelete.Enabled = true;
                }
                else
                {
                    imagePreview1.Files = null;
                    gbtDelete.Enabled = false;
                }
                this.Update();
            }
            catch{}
        }
Пример #2
0
        // Start scanning when the soft scan button is pressed with keyboard.
        private void graphicsScanButton_KeyUp(object sender, KeyEventArgs e)
        {
            exporterHost.HWScanButton_Pressed -= hw_sbp;

            timerLogout.Stop();
            timerLogout.Interval = autoLogoutTime;

            SampleScan form = new SampleScan(exporterHost, autoLogoutTime, scanBatchSetting);
            form.ShowDialog();

            //SamplePreview form1 = new SamplePreview(exporterHost, autoLogoutTime, scanBatchSetting);
            //form1.ShowDialog();

            exporterHost.HWScanButton_Pressed += hw_sbp;

            timerLogout.Start();
        }
Пример #3
0
        void hwScanStart()
        {
            exporterHost.HWScanButton_Pressed -= hw_sbp;

            this.graphicsScanButton.Select();

            timerLogout.Stop();
            timerLogout.Interval = autoLogoutTime;

            SampleScan form = new SampleScan(exporterHost, autoLogoutTime, scanBatchSetting);
            form.ShowDialog();

            //SamplePreview form1 = new SamplePreview(exporterHost, autoLogoutTime, scanBatchSetting);
            //form1.ShowDialog();

            exporterHost.HWScanButton_Pressed += hw_sbp;

            timerLogout.Start();
        }
Пример #4
0
        // Start scanning when the soft scan button is pressed with the pointing device.
        private void graphicsScanButton_Click(object sender, System.EventArgs e)
        {
            exporterHost.HWScanButton_Pressed -= hw_sbp;

            timerLogout.Stop();
            timerLogout.Interval = autoLogoutTime;

            while (true)
            {
                SampleScan form = new SampleScan(exporterHost, autoLogoutTime, scanBatchSetting);
                form.ShowDialog();
                /*
                SamplePreview form1 = new SamplePreview(exporterHost, autoLogoutTime, scanBatchSetting);
                form1.ShowDialog();
                if (form1.DialogResult == DialogResult.Retry)
                {
                    continue;
                }
                else
                {
                    break;
                }
                 */
            }

            exporterHost.HWScanButton_Pressed += hw_sbp;

            timerLogout.Start();
        }