Exemplo n.º 1
0
 private void panel1_MouseUp(object sender, MouseEventArgs e)
 {
     if (isMouseDown)
     {
         isMouseDown  = false;
         this.Opacity = minOpacity;
         Capture c = new Capture(rect);
         //Process.Start("explorer.exe", ScreenParser.Capture.imagePath);
         OCR o = new OCR(ScreenParser.Capture.imagePath);
         DoneOCREventArgs args = new DoneOCREventArgs();
         args.Text = o.Text;
         args.Item = this.item;
         OnDoneOCR(args);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnDoneOCR(DoneOCREventArgs e)
 {
     DoneOCR?.Invoke(this, e);
 }