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 lbTestCases_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listboxNames.SelectedValue != null && listboxNames.SelectedValue.ToString() != typeof(System.Data.DataRowView).ToString())
            {
                fromEvent = true;
                txtCaseDescription.Text = loadedTopologyTestCases[listboxNames.SelectedIndex].Description;
                ClearAll();

                TopologyTestCase testCase = loadedTopologyTestCases[listboxNames.SelectedIndex];
                winformsMap1.CurrentExtent = testCase.GetBoundingBox();
                winformsMap1.CurrentExtent.ScaleUp(30);
                string typeName = testCase.GetType().Name.Replace("TopologyTestCase", "");

                int count = 0;
                foreach (var item in cmbTopologyRules.Items)
                {
                    if (item.ToString() == typeName)
                    {
                        break;
                    }
                    count++;
                }
                cmbTopologyRules.SelectedIndex = count;

                testCase.Draw(winformsMap1);
                currentTopologyTestCase = testCase.Clone();
            }
        }