| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- using System.Configuration;
- using System.Threading;
- using Saraff.Twain;
- using HXX.Scanner.Common;
- namespace HXX.Scanner.Biz
- {
- public partial class twain32_events
- {
- /// <summary>
- /// 文件已经生成事件,通知进行接下来的处理,e.ImageFileXfer.FileName为本次生成的文件名
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- public static void _twain32_FileXferEvent(object sender, Saraff.Twain.Twain32.FileXferEventArgs e)
- {
- //测试扫描一张 || 取消扫描
- //if (config_environment.scan_type != ScanType.Formal && !config_environment.scan_ab)
- //{
- // //测试只扫描一张(一面)
- // try
- // {
- // e.Cancel = true;
- // }
- // catch (Exception ex)
- // {
- // LogManager.WriteLog(ex);
- // }
- //}
- if (config_environment.scan_state)
- {
- biz_scanHistory.add_history();
- file_manager.save(e.ImageFileXfer.FileName);
- }
- }
- }
- }
|