View for defining a new test-package to add to the side bar.
Inheritance: TestHarnessViewBase
 private void DestroyView()
 {
     if (view != null) view.Dispose();
     view = null;
     TestHarness.Reset();
 }
        /// <summary>Shows the 'Add Package' screen.</summary>
        public void Show()
        {
            // Change the log height (if required).
            if (shell.ControlHost.Height < MinHeight)
            {
                events.FireChangeLogHeight(shell.ControlHost.DivMain.GetHeight() - MinHeight);
            }

            // Insert a new view.
            view = AddPackageView.AddToTestHarness();
            view.AddButton.Click += OnAddClick;
            view.CancelButton.Click += OnCancelClick;
        }
        /// <summary>Inserts an instance of the view into the TestHarness' main canvas.</summary>
        public static AddPackageView AddToTestHarness()
        {
            // Create the view.
            AddPackageView view = new AddPackageView();

            // Add to the TestHarness.
            TestHarness.Reset();
            TestHarness.CanScroll = false;
            TestHarness.DisplayMode = ControlDisplayMode.Fill;
            TestHarness.AddControl(view);

            // Finish up.
            return view;
        }