public void ShowPad(FormsDesigner.IPadContent content) { PadContentCollection.Add(content); if (_layout != null) { _layout.ShowPad(content); } }
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(); }