예제 #1
0
        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);
        }
예제 #3
0
 private void searchAreaControl_DrawSearchArea(object sender, SearchAreaEventArgs e)
 {
     OnDrawSearchArea(e);
 }
예제 #4
0
 private void FrmOption_DrawSearchArea(object sender, SearchAreaEventArgs e)
 {
     OnDrawSearchArea(e);
 }