public SampleMultiPage(IExporterHost host, int auto_logout_time,ScanBatchSetting sbset) { // ���̌Ăяo���� Windows �t�H�[�� �f�U�C�i�ŕK�v�ł��B InitializeComponent(); // TODO: InitializeComponent �Ăяo���̌�ɏ�����������lj����܂��B _sbset = sbset; _auto_logout_time = auto_logout_time; _host=host; }
// private int curIndex; public SamplePreview(IExporterHost host, int auto_logout_time,ScanBatchSetting sbset, String ftpIPAddress, String ftpUser, String ftpPasswd, String idNumber) { _ftpIPAddress = ftpIPAddress; _ftpUser = ftpUser; _ftpPassword = ftpPasswd; _IdNumber = idNumber; InitializeComponent(); this.btScan.Click += new EventHandler(btScan_Click); this.btNext.Click += new EventHandler(btNext_Click); this.btPrev.Click += new EventHandler(btPrev_Click); /* [Default Scan Parameter] _scanParam.PixelType = PixelType.AutoColor; _scanParam.Resolution = Resolution.Normal; _scanParam.CustomResolution = 0; _scanParam.PaperSize = PaperSize.AutoSize; _scanParam.ScanArea = null; _scanParam.PaperSupply = PaperSupply.Duplex; _scanParam.FileType = FileType.PDF; _scanParam.Compression = Compression.None; _scanParam.BlankPageSkip = false; _scanParam.AutoRotation = false; _scanParam.MultifeedDetection= false; _scanParam.Brightness= 3; _scanParam.Contrast= 3; _scanParam.PDFPassword= null; _scanParam.SearchablePDFSetting = null; */ this.imagePreview1.Zoom = fi6000NS.SDK.ControlInterfaces.Preview.ZoomMode.FitToWindow; _sbset = sbset; _auto_logout_time = auto_logout_time; _host=host; Files =null; Files = _host.GetImageFiles(); if(Files.Length > 0) { imagePreview1.Files=Files; labelPage.Text=Files.Length.ToString()+" page"; imagePreview1.RefreshPreview(); gbtDelete.Enabled=true; } else { imagePreview1.Files=null; gbtDelete.Enabled=false; } }