Example #1
0
        private void EndWalkthrough()
        {
            LastStateAction?.Invoke();

            if (!isCurrentSetActionCompleted)
            {
                InvalidateState();

                return;
            }

            imageBox.SelectNone();

            var tmpImg = new Template.TemplateImage(selectedSize, selectedScale, selectedDeskewAngle);

            tmpImg.SetBitmap(TemplateImage.Bitmap);
            if (referenceTemplate != null)
            {
                tmpImg.ImageLocation = referenceTemplate.GetTemplateImage.ImageLocation;
            }

            OnConfigurationFinishedEvent?.Invoke(this, tmpImg, alignmentMethods, alignmentPipelineResults);
        }
Example #2
0
 private void OnConfigurationFinishedCallback(TemplateConfigurationForm templateConfigurationForm, Template.TemplateImage templateImage, List <Template.AlignmentMethod> alignmentMethods, Template.AlignmentPipelineResults alignmentPipelineResults)
 {
     Close();
 }