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); }
private void OnConfigurationFinishedCallback(TemplateConfigurationForm templateConfigurationForm, Template.TemplateImage templateImage, List <Template.AlignmentMethod> alignmentMethods, Template.AlignmentPipelineResults alignmentPipelineResults) { Close(); }