private void AddQueryVariant_Click(object sender, EventArgs e)
        {
            Benchmark.PlanEquivalenceTest planEquivalenceTest = (Benchmark.PlanEquivalenceTest)BenchmarkObject;
            Benchmark.QueryVariant        queryVariant        = new Benchmark.QueryVariant(planEquivalenceTest);
            queryVariant.Name   = Helpers.GetNewName(planEquivalenceTest.Variants.Select(v => v.Name), "new variant", NumeralStyle.Guess);
            queryVariant.Number = Helpers.GetNewName(planEquivalenceTest.Variants.Select(v => v.Number), null, NumeralStyle.AlphabeticLower);
            planEquivalenceTest.Variants.Add(queryVariant);

            TreeNode newNode = BenchmarkTreeView.GetTreeNode(queryVariant);

            if (newNode != null)
            {
                BenchmarkTreeView.TreeView.SelectedNode = newNode;
                newNode.BeginEdit();
            }
        }
        private void AddConfiguration_Click(object sender, EventArgs e)
        {
            Benchmark.TestGroup     testGroup     = (Benchmark.TestGroup)BenchmarkObject;
            Benchmark.Configuration configuration = new Benchmark.Configuration(testGroup);
            configuration.Name   = Helpers.GetNewName(testGroup.Configurations.Select(c => c.Name), "new configuration", NumeralStyle.Guess);
            configuration.Number = Helpers.GetNewName(testGroup.Configurations.Select(c => c.Number), null, NumeralStyle.AlphabeticUpper);
            testGroup.Configurations.Add(configuration);

            TreeNode newNode = BenchmarkTreeView.GetTreeNode(configuration);

            if (newNode != null)
            {
                BenchmarkTreeView.TreeView.SelectedNode = newNode;
                newNode.BeginEdit();
            }
        }
        private void AddTest_Click(object sender, EventArgs e)
        {
            Benchmark.TestGroup           testGroup           = (Benchmark.TestGroup)BenchmarkObject;
            Benchmark.PlanEquivalenceTest planEquivalenceTest =
                new Benchmark.PlanEquivalenceTest(testGroup);
            planEquivalenceTest.Name   = Helpers.GetNewName(testGroup.Tests.Select(t => t.Name), "new test", NumeralStyle.Guess);
            planEquivalenceTest.Number = Helpers.GetNewName(testGroup.Tests.Select(t => t.Number), null, NumeralStyle.Arabic);
            testGroup.Tests.Add(planEquivalenceTest);

            TreeNode newNode = BenchmarkTreeView.GetTreeNode(planEquivalenceTest);

            if (newNode != null)
            {
                BenchmarkTreeView.TreeView.SelectedNode = newNode;
                newNode.BeginEdit();
            }
        }
        private void AddTestGroup_Click(object sender, EventArgs e)
        {
            Benchmark.Benchmark benchmark = (Benchmark.Benchmark)BenchmarkObject;
            Benchmark.TestGroup testGroup = new Benchmark.TestGroup(benchmark);

            testGroup.Name   = Helpers.GetNewName(benchmark.TestGroups.Select(g => g.Name), "new test group", NumeralStyle.Guess);
            testGroup.Number = Helpers.GetNewName(benchmark.TestGroups.Select(g => g.Number), null, NumeralStyle.RomanUpper);

            benchmark.TestGroups.Add(testGroup);

            TreeNode newNode = BenchmarkTreeView.GetTreeNode(testGroup);

            if (newNode != null)
            {
                BenchmarkTreeView.TreeView.SelectedNode = newNode;
                newNode.BeginEdit();
            }
        }