ComponentFactory.Krypton.Navigator.VisualPopupPage.Dispose C# (CSharp) Méthode

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void
        protected override void Dispose(bool disposing)
        {
            if (_navigator.IsChildPanelBorrowed && (_navigator.ChildPanel != null))
            {
                // Remove the child panel from ourself and return it
                // back to the navigator that it was borrowed from
                Controls.Remove(_navigator.ChildPanel);

                // Move the panel back to a minus position so it does not show
                // until it is layed out again by the owning navigator instance
                _navigator.ChildPanel.Location = new Point(-_navigator.ChildPanel.Width,
                                                           -_navigator.ChildPanel.Height);

                _navigator.ReturnChildPanel();
            }

            base.Dispose(disposing);
        }