|
@@ -232,17 +232,20 @@ namespace OTSMeasureApp
|
|
|
DeleteHoleBSEImageDataNoMessageBox();
|
|
|
break;
|
|
|
case "DeleteSampleData":
|
|
|
- if (MessageBox.Show("The result data of this sample will be deleted, continue?", "DeleteData", MessageBoxButtons.OKCancel) == DialogResult.OK)
|
|
|
- {
|
|
|
- m_MeasureAppForm.InitCurrentSampleState();
|
|
|
- m_MeasureAppForm.m_MeasureResultWindow.SetInit();
|
|
|
- PrepareMeasureField(GetWorkingVisualSample(), MSR_RUN_TYPE.RUNMEASURE);
|
|
|
- }
|
|
|
- catch(Exception ex)
|
|
|
+ try
|
|
|
+ {
|
|
|
+ if (MessageBox.Show("The result data of this sample will be deleted, continue?", "DeleteData", MessageBoxButtons.OKCancel) == DialogResult.OK)
|
|
|
{
|
|
|
- MessageBox.Show(ex.ToString());
|
|
|
+ m_MeasureAppForm.InitCurrentSampleState();
|
|
|
+ m_MeasureAppForm.m_MeasureResultWindow.SetInit();
|
|
|
+ PrepareMeasureField(GetWorkingVisualSample(), MSR_RUN_TYPE.RUNMEASURE);
|
|
|
}
|
|
|
}
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ MessageBox.Show(ex.ToString());
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
case "SlopFocusMenuItem":
|
|
|
|