Пример #1
0
        public void ShowPad(FormsDesigner.IPadContent content)
        {
            PadContentCollection.Add(content);

            if (_layout != null)
            {
                _layout.ShowPad(content);
            }
        }
Пример #2
0
        public void UnloadPad(FormsDesigner.IPadContent content)
        {
            if (content == null)
            {
                return;
            }
            DockContent dockContent = content.Control as DockContent;

            if (dockContent == null)
            {
                dockContent = content.Control.Parent as DockContent;
            }

            dockContent.Close();

            PadContentCollection.Remove(content);

            if (_layout != null)
            {
                _layout.UnloadPad(content);
            }

            content.Dispose();
        }