public void UpdateAnswerKey(KeyPanel pid) { if (pid.AnswerImage != null) { imageManager.Add(Workspace.IMGMGR_ANSWERS, pid.AnswerImagePath); myAnswerkeyPath = pid.AnswerImagePath; } ProcessOmrDocumentsOperation podo = new ProcessOmrDocumentsOperation(pid.AnswerImage, template, this.imageManager, null); podo.Start(); this.answers = podo.Answers; ReprocessVerification(VerificationParameters.AllParameters, answers, results); }
public Workspace(InputPanel ip, KeyPanel kp, ITemplateForm currentTemplate) : this() { for (int i = 0; i < ip.SelectedInputs.Count; i++) { string guid = Guid.NewGuid().ToString(); imageManager.Add(guid, ip.SelectedInputs[i]); myImages.Add(guid, ip.SelectedInputs[i]); } if (kp.AnswerImage != null) { imageManager.Add(Workspace.IMGMGR_ANSWERS, kp.AnswerImagePath); myAnswerkeyPath = kp.AnswerImagePath; } omrProcessor = new ProcessOmrDocumentsOperation(kp.AnswerImage, currentTemplate, imageManager, myImages); this.PassingGrade = kp.PassingGrade; this.verificationParameters = VerificationParameters.GetTemplate(VerificationParameters.FilterTemplate.CommonIssues); }