示例#1
0
 private void ProcessImage(RasterImage rasterImage)
 {
     ClearOldData(false);
     selectedRowIndex = -1;
     if (rasterImage.ViewPerspective != RasterViewPerspective.TopLeft)
     {
         Leadtools.ImageProcessing.ChangeViewPerspectiveCommand cmd = new Leadtools.ImageProcessing.ChangeViewPerspectiveCommand();
         cmd.InPlace         = true;
         cmd.ViewPerspective = RasterViewPerspective.TopLeft;
         cmd.Run(rasterImage);
     }
     this.rasterImageViewer1.Image = rasterImage;
     processdlg = new ProcessDialog(checkReader);
     processdlg.Show();
     processdlg.ProcessFinished += new EventHandler(processdlg_ProcessFinished);
     new Thread(delegate()
     {
         try
         {
             checkReader.ProcessImage(rasterImage);
         }
         catch (Exception e)
         {
             checkReader.Cancel();
             this.Invoke(new Action(() => ThrowExp(e)));
         }
     }).Start();
 }
示例#2
0
 private void _buttonCancel_Click(object sender, EventArgs e)
 {
     CancelHit             = true;
     _buttonCancel.Enabled = false;
     _reader.Cancel();
 }