コード例 #1
0
ファイル: FormDocument.cs プロジェクト: HeinerMuc/archive
        /// <summary>
        /// Bild (oder Bilder?) fertig gescannt?
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Controller_ScannedAll(object sender, ScannedAllEventArgs e)
        {
            string savename=String.Format("{0}{1}.png", Globals.OptionsTempDirectory, CSCL.Helpers.StringHelpers.GetRandomASCIIString(8));
            Image scannedPicture = e.Images[0];
            scannedPicture.Save(savename);

            savepathInvoke=savename;
            InvokeCallback RefreshListCallback=new InvokeCallback(RefreshList);
            lbImageData.Invoke(RefreshListCallback);
        }
コード例 #2
0
ファイル: TwainController.cs プロジェクト: HeinerMuc/archive
 /// <summary>
 /// This event handler listens to the internal twain controller that is co working with
 /// this preoview from and handles the communication with the twain interface. It is just used
 /// to lead through the event from the internal controller.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InternalController_ScannedAll(object sender, ScannedAllEventArgs e)
 {
     if (this.ScannedAll != null)
     {
         this.ScannedAll (sender, e);
     }
 }