private void btnSaveToXML_Click(object sender, EventArgs e) { SaveTestCaseDialog saveTestCaseDialog = new SaveTestCaseDialog(currentTopologyTestCase.GetType().Name, "", testCasesFilePath, null); if (saveTestCaseDialog.ShowDialog() == DialogResult.OK) { currentTopologyTestCase.Name = saveTestCaseDialog.TestCaseName; currentTopologyTestCase.Description = saveTestCaseDialog.Description; currentTopologyTestCase.ToXml(testCasesFilePath + "\\" + saveTestCaseDialog.TestCaseName); LoadTestCases(); } }
private void btnSaveCaseInCurrentExtent_Click(object sender, EventArgs e) { SaveTestCaseDialog saveTestCaseDialog = new SaveTestCaseDialog(currentTopologyTestCase.GetType().Name, "", testCasesFilePath, winformsMap1.CurrentExtent); if (saveTestCaseDialog.ShowDialog() == DialogResult.OK) { TopologyTestCase topologyTestCase = currentTopologyTestCase.GenerateTestCaseWithinExtent(winformsMap1.CurrentExtent); topologyTestCase.Name = saveTestCaseDialog.TestCaseName; topologyTestCase.Description = saveTestCaseDialog.Description; topologyTestCase.ToXml(testCasesFilePath + "\\" + saveTestCaseDialog.TestCaseName); LoadTestCases(); } }