Added cleanup of bars when TabControl is disposed.

This commit is contained in:
Rich 2009-10-22 19:06:43 +00:00
parent cc86853f6f
commit b1ad83dd4e

View File

@ -13,6 +13,9 @@ namespace Volian.Controls.Library
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
// Cleanup Bars
foreach (DevComponents.DotNetBar.Bar myBar in dotNetBarManager1.Bars)
MyBar.Dispose();
if (disposing && (components != null))
{
components.Dispose();