protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (TabControl != null) { if (!TabControl.IsDisposed) { TabControl.Dispose(); } TabControl = null; } if (AvailableTab != null) { if (!AvailableTab.IsDisposed) { AvailableTab.Dispose(); } AvailableTab = null; } if (CurrentTab != null) { if (!CurrentTab.IsDisposed) { CurrentTab.Dispose(); } CurrentTab = null; } if (CompletedTab != null) { if (!CompletedTab.IsDisposed) { CompletedTab.Dispose(); } CompletedTab = null; } } }