private void btnRunTestCase_Click(object sender, EventArgs e) { TestRunProgressForm testRunProgressForm = new TestRunProgressForm(); ErrorResult errorResult = testRunProgressForm.TestRunModel(ccTestWorkspace, worstTestCases[cmbRequirements.SelectedItem.ToString()][lvTestCases.SelectedIndices[0]]); if (errorResult.errorCode != ErrorCode.Success) { if (errorResult.errorCode != ErrorCode.TestRunCanceled) { MessageBox.Show("Error in Running the Model with this Information!", "Error Running the Model", MessageBoxButtons.OK); } return; } }
private void btnRunModel_Click(object sender, EventArgs e) { TestRunProgressForm testRunProgressForm = new TestRunProgressForm(); CCTestCase ccTestCase = new CCTestCase(); ccTestCase.initialDesired = float.Parse(tbInitialDsrdTest.Text); ccTestCase.finalDesired = float.Parse(tbFinalDsrdTest.Text); ErrorResult errorResult = testRunProgressForm.TestRunModel(ccTestWorkspace, ccTestCase); if (errorResult.errorCode != ErrorCode.Success) { if (errorResult.errorCode != ErrorCode.TestRunCanceled) { MessageBox.Show("Error in Running the Model with this Information!", "Error Running the Model", MessageBoxButtons.OK); } return; } }