public MainLayout(DockPanel panel, List<ToolStripComboBox> comboBoxes, List<ToolStripButton> buttons, TrackBar trackBar, string path)
        {
            Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger);

            Panel = panel;
            ComboBoxes = comboBoxes;
            Buttons = buttons;
            TrackBar = trackBar;

            if (!Directory.Exists(path))
                Directory.CreateDirectory(path);

            DockConfigPath = Path.Combine(path, Settings.Default.DockingConfigurationPath);

            TreeView = new TreeViewFrame();

            TreeView.SelectedDatabaseChanged += TreeView_SlectedDatabaseChanged;
            TreeView.PropertiesClick += TreeView_PropertiesClick;

            StepFrames = new Dictionary<TestMethod, StepFrame>();
            LogFrame = new LogFrame();

            PropertiesFrame = new PropertiesFrame();
            PropertiesFrame.Caller = TreeView;

            foreach (TestMethod method in GetTestMethods())
                StepFrames[method] = CreateStepFrame(method);
        }
        public LayoutManager(DockPanel panel, ToolStripComboBox[] comboBoxes, List<ToolStripButton> buttons, TrackBar trackBar)
        {
            Panel = panel;
            ComboBoxes = comboBoxes;
            Buttons = buttons;
            TrackBar = trackBar;

            TreeView = new TreeViewFrame();
            TreeView.SelectedDatabaseChanged += TreeView_SlectedDatabaseChanged;
            TreeView.PropertiesClick += TreeView_PropertiesClick;
            StepFrames = new Dictionary<TestMethod, StepFrame>();
            LogFrame = new LogFrame();
            InstanceProperites = new BenchmarkInstanceProperies();
            InstanceProperites.Caller = TreeView;

            Initialize();

            foreach (var method in new TestMethod[] { TestMethod.Write, TestMethod.Read, TestMethod.SecondaryRead })
                StepFrames[method] = CreateStepFrame(method);
        }
        public void ShowTreeViewFrame()
        {
            if (TreeView.IsDisposed)
            {
                TreeView = new TreeViewFrame();
                TreeView.CreateTreeView();
            }

            TreeView.Activate();

            TreeView.Text = "Databases";
            TreeView.Show(Panel);

            TreeView.DockState = DockState.DockLeft;

            TreeView.SelectedDatabaseChanged += TreeView_SlectedDatabaseChanged;
            TreeView.PropertiesClick += TreeView_PropertiesClick;
        }
        private void CreateTreeView()
        {
            TreeView = new TreeViewFrame();
            TreeView.CreateTreeView();
            TreeView.Text = "Databases";

            TreeView.SelectedDatabaseChanged += TreeView_SlectedDatabaseChanged;
            TreeView.PropertiesClick +=TreeView_PropertiesClick;
            TreeView.Show(Panel);
            TreeView.DockState = DockState.DockLeft;
            TreeView.ExpandAll();
        }