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 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 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();
            }
        }
 public TestRunsTreeNode(Benchmark.Benchmark benchmark, BenchmarkTreeView benchmarkTreeView)
 {
     this.benchmark         = benchmark;
     this.benchmarkTreeView = benchmarkTreeView;
     BindNode();
 }
Ejemplo n.º 6
0
 public FolderTreeNode(BenchmarkTreeView benchmarkTreeView)
 {
     this.benchmarkTreeView = benchmarkTreeView;
 }
 public ConfigurationTreeNode(Benchmark.Configuration configuration, BenchmarkTreeView benchmarkTreeView)
     : base(configuration, benchmarkTreeView)
 {
 }
 public PlanEquivalenceTestTreeNode(Benchmark.PlanEquivalenceTest planEquivalenceTest, BenchmarkTreeView benchmarkTreeView)
     : base(planEquivalenceTest, benchmarkTreeView)
 {
 }
Ejemplo n.º 9
0
 public ScriptTreeNode(Benchmark.Script script, BenchmarkTreeView benchmarkTreeView)
     : base(script, benchmarkTreeView)
 {
 }
 public TestGroupTreeNode(Benchmark.TestGroup testGroup, BenchmarkTreeView benchmarkTreeView)
     : base(testGroup, benchmarkTreeView)
 {
 }
 public TestRunTreeNode(Benchmark.TestRun testRun, BenchmarkTreeView benchmarkTreeView)
     : base(testRun, benchmarkTreeView)
 {
 }
 public QueryVariantTreeNode(Benchmark.QueryVariant queryVariant, BenchmarkTreeView benchmarkTreeView)
     : base(queryVariant, benchmarkTreeView)
 {
 }
 public ConnectionSettingsNode(Benchmark.ConnectionSettings connectionSettings, BenchmarkTreeView benchmarkTreeView)
     : base(connectionSettings, benchmarkTreeView)
 {
 }
 public StatementTreeNode(Benchmark.Statement statement, BenchmarkTreeView benchmarkTreeView)
     : base(statement, benchmarkTreeView)
 {
 }
 public BenchmarkTreeNode(Benchmark.Benchmark benchmark, BenchmarkTreeView benchmarkTreeView)
     : base(benchmark, benchmarkTreeView)
 {
 }