/// <summary> /// Closes and disposes a <see cref="IPadContent"/>. /// </summary> public void UnloadPad(PadDescriptor content) { PadContentCollection.Remove(content); if (layout != null) { layout.UnloadPad(content); } content.Dispose(); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (padDescriptor != null) { padDescriptor.Dispose(); padDescriptor = null; } } }