public override void BindChildren()
        {
            Benchmark.TestGroup testGroup = (Benchmark.TestGroup)BenchmarkObject;

            this.Nodes.Clear();

            configurationsNode                  = new FolderTreeNode(BenchmarkTreeView);
            configurationsNode.Text             = "Configurations";
            configurationsNode.ImageKey         = "Folder";
            configurationsNode.SelectedImageKey = "Folder";
            BindCollection <Benchmark.Configuration>(configurationsNode, testGroup.Configurations);
            this.Nodes.Add(configurationsNode);

            testsNode                  = new FolderTreeNode(BenchmarkTreeView);
            testsNode.Text             = "Tests";
            testsNode.ImageKey         = "Folder";
            testsNode.SelectedImageKey = "Folder";
            BindCollection <Benchmark.Test>(testsNode, testGroup.Tests);
            this.Nodes.Add(testsNode);

            configurationsContextMenu = new ContextMenuStrip();
            configurationsContextMenu.Items.Add("Add", Properties.Resources.Add_16, AddConfiguration_Click);
            configurationsNode.ContextMenuStrip = configurationsContextMenu;

            testsContextMenu = new ContextMenuStrip();
            testsContextMenu.Items.Add("Add", Properties.Resources.Add_16, AddTest_Click);
            testsContextMenu.Items.Add(new ToolStripSeparator());
            testsContextMenu.Items.Add("Activate all tests in group", Properties.Resources.CheckAll_16, ActivateAllTests_Click);
            testsContextMenu.Items.Add("Deactivate all tests in group", Properties.Resources.UncheckAll_16, DeactivateAllTests_Click);

            testsNode.ContextMenuStrip = testsContextMenu;

            ChildrenBound = true;
        }
        public override void BindChildren()
        {
            Benchmark.Benchmark benchmark = (Benchmark.Benchmark)BenchmarkObject;

            initScriptNode                  = new ScriptTreeNode(benchmark.InitScript, BenchmarkTreeView);
            initScriptNode.Text             = "Init script";
            initScriptNode.ImageKey         = "InitScript";
            initScriptNode.SelectedImageKey = "InitScript";
            this.Nodes.Add(initScriptNode);

            cleanUpScriptNode                  = new ScriptTreeNode(benchmark.CleanUpScript, BenchmarkTreeView);
            cleanUpScriptNode.Text             = "Clean-up script";
            cleanUpScriptNode.ImageKey         = "CleanUpScript";
            cleanUpScriptNode.SelectedImageKey = "CleanUpScript";
            this.Nodes.Add(cleanUpScriptNode);

            testGroupsNode                  = new FolderTreeNode(BenchmarkTreeView);
            testGroupsNode.Text             = "Groups";
            testGroupsNode.ImageKey         = "Folder";
            testGroupsNode.SelectedImageKey = "Folder";

            BindCollection <Benchmark.TestGroup>(testGroupsNode, benchmark.TestGroups);

            this.Nodes.Add(testGroupsNode);

            connectionSettingsNode                  = new ConnectionSettingsNode(benchmark.ConnectionSettings, BenchmarkTreeView);
            connectionSettingsNode.Text             = "Connection";
            connectionSettingsNode.ImageKey         = "Connection";
            connectionSettingsNode.SelectedImageKey = "Connection";
            this.Nodes.Add(connectionSettingsNode);

            testRunsNode      = new TestRunsTreeNode(benchmark, BenchmarkTreeView);
            testRunsNode.Text = "Results";
            this.Nodes.Add(testRunsNode);

            BindCollection <Benchmark.TestRun>(testRunsNode, benchmark.TestRuns);

            testGroupsContextMenu = new ContextMenuStrip();
            testGroupsContextMenu.Items.Add("Add", Properties.Resources.Add_16, AddTestGroup_Click);
            testGroupsNode.ContextMenuStrip = testGroupsContextMenu;

            ChildrenBound = true;
        }