private void OnClickPerformFPN(object sender, EventArgs e) { string instruction = string.Format("Close the lens.\n\nClick 'OK' once you are done."); frmInstruction darkFieldCorrectionInstructionForm = new frmInstruction(instruction); if (darkFieldCorrectionInstructionForm.ShowDialog() == DialogResult.OK) { this.PerformFPN(); } }
private void OnClickPerformPRNU(object sender, EventArgs e) { string instruction = string.Format("Remove the lens cap.\n\nInsert the white calibration target and ensure that the complete FOV is covered.\n\nDefocus the lens by rotating the focus ring by 20 degrees.\n\nClick 'OK' once you are done."); frmInstruction brightFieldCorrectionInstructionForm = new frmInstruction(instruction); if (brightFieldCorrectionInstructionForm.ShowDialog() == DialogResult.OK) { this.PerformPRNU(); } }
private void OnClickLearnFocus(object sender, EventArgs e) { this.focusLearningStarted = true; this.focusLearningOver = false; hv_AutoCorrelationTuple = new HTuple(); string instruction = string.Format("Place the calibration target.\n\nLearn Image Sharpness / Focus - Turn the focus ring from one end to the other end.\n\nPress \"OK\" once learning is complete."); frmInstruction frm = new frmInstruction(instruction); frm.StartPosition = FormStartPosition.CenterScreen; if (frm.ShowDialog(this) == DialogResult.OK) { this.focusLearningOver = true; } }