Added cleanup of bars when TabControl is disposed.
This commit is contained in:
parent
cc86853f6f
commit
b1ad83dd4e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user