Beispiel #1
0
        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();
        }
Beispiel #2
0
        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);
                }
            }
        }
Beispiel #3
0
 public void RefreshPropertyFrame()
 {
     InstanceProperites.SetProperties(TreeView.GetSelectedDatabase());
 }