Ejemplo n.º 1
0
        public OCRLiveForm()
        {
            InitializeComponent();

            displayImage = new displayImageDelegate(DisplayImages);
            closeDialog  = new closeDialogDelegate(StopGrabAndCloseDialog);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Closes the dialog in a safe cross thread manner.
 /// </summary>
 public void CloseSyncDialog()
 {
     closeDialogDelegate closeDelegate = new closeDialogDelegate(CloseSyncDialog);
     if (this.InvokeRequired)
     {
         this.Invoke(closeDelegate);
     }
     else
     {
         show = false;
         Close();
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Closes the dialog in a safe cross thread manner.
        /// </summary>
        public void CloseSyncDialog()
        {
            closeDialogDelegate closeDelegate = new closeDialogDelegate(CloseSyncDialog);

            if (this.InvokeRequired)
            {
                this.Invoke(closeDelegate);
            }
            else
            {
                show = false;
                Close();
            }
        }