public void SetupMonitorRegion()
        {
            var img = LastImage;

            if (img != null)
            {
                using (var form = new FormRoi())
                {
                    form.Image = img;
                    form.Roi   = GetRoi();
                    if (form.ShowDialog(Application.OpenForms[0]) == DialogResult.OK)
                    {
                        _portraitFinder.ROI = form.Roi;
                        SaveRoi(form.Roi);
                    }
                }
            }
        }
 public void SetupMonitorRegion()
 {
     var img = LastImage;
     if (img != null)
     {
         using (var form = new FormRoi())
         {
             form.Image = img;
             form.Roi = GetRoi();
             if (form.ShowDialog(Application.OpenForms[0]) == DialogResult.OK)
             {
                 _portraitFinder.ROI = form.Roi;
                 SaveRoi(form.Roi);
             }
         }
     }
 }