예제 #1
0
        /// <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
 /// <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);
     }
 }