Destruct() public method

Destruct and cleanup the view hierarchy of the header group.
public Destruct ( ) : void
return void
        /// <summary>
        /// Destruct the view hierarchy for this mode.
        /// </summary>
        protected override void DestructCheckItemView()
        {
            // Must remember to get the header group to destruct itself
            _headerGroup.Destruct();

            // Must call the base class to perform common actions
            base.DestructCheckItemView();

            _viewGroup.Dispose();
        }
        /// <summary>
        /// Destruct the mode specific view hierarchy.
        /// </summary>
        protected override void DestructStackCheckButtonView()
        {
            // Put the child panel back into the navigator
            _viewScrollViewport.RevertParent(Navigator, Navigator.ChildPanel);

            // Destruct the header group viewlet
            _headerGroup.Destruct();

            // Let base class do common stuff
            base.DestructStackCheckButtonView();
        }
        /// <summary>
        /// Destruct the previously created view.
        /// </summary>
        public override void Destruct()
        {
            // Unhook from events
            Navigator.EnabledChanged -= OnEnabledChanged;

            // Pull down the header group view hierarchy
            _headerGroup.Destruct();

            // Put the old root back again
            ViewManager.Root = _oldRoot;

            // Let base class do standard work
            base.Destruct();
        }