public void Reset() { TreeView.Dispose(); CreateTreeView(); ResetStepFrames(); StepFrames[TestMethod.Write].Activate(); LogFrame.Dispose(); LogFrame = new LogFrame(); LogFrame.Show(Panel); LogFrame.DockState = DockState.DockBottomAutoHide; LogFrame.Text = "Logs"; InstanceProperites.Dispose(); InstanceProperites = new BenchmarkInstanceProperies(); InstanceProperites.Show(Panel); InstanceProperites.DockState = DockState.DockRightAutoHide; InstanceProperites.Text = "Properties"; InstanceProperites.Caller = TreeView; Initialize(); }
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 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 ShowProperties() { if (!InstanceProperites.IsDisposed) { InstanceProperites.Show(Panel); InstanceProperites.DockState = DockState.DockRight; } else { var database = TreeView.GetSelectedDatabase(); if (database != null) { InstanceProperites = new BenchmarkInstanceProperies(); InstanceProperites.Text = "Properties"; InstanceProperites.Show(Panel); InstanceProperites.DockState = DockState.DockRight; InstanceProperites.Caller = TreeView; InstanceProperites.SetProperties(database); } } }