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); } }
protected virtual void OnDoneOCR(DoneOCREventArgs e) { DoneOCR?.Invoke(this, e); }