private void ConfigForm_DrawSearchArea(object sender, SearchAreaEventArgs e) { //TODO: Implement test logic if (OcrResult == null) { DoOCR(); } var region = OcrResult.Regions.FirstOrDefault(); var loc = FieldOption.FromRelative(OcrResult.Info.ToLocation(), e.Location); PictureBox.Image = _imageManager.DrawRegion(region, loc); }
protected virtual void OnDrawSearchArea(SearchAreaEventArgs e) { EventHandler <SearchAreaEventArgs> handler = DrawSearchArea; handler?.Invoke(this, e); }
private void searchAreaControl_DrawSearchArea(object sender, SearchAreaEventArgs e) { OnDrawSearchArea(e); }
private void FrmOption_DrawSearchArea(object sender, SearchAreaEventArgs e) { OnDrawSearchArea(e); }