protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { if (components != null) { foreach (GUIComponent c in components) { c.Dispose(); } components.Clear(); } if (batch != null) { batch.Dispose(); batch = null; } if (primBatch != null) { primBatch.Dispose(); primBatch = null; } } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (!disposed) { if (disposing) { if (batch != null) { batch.Dispose(); batch = null; } if (primBatch != null) { primBatch.Dispose(); primBatch = null; } } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (!disposed) { if (disposing) { if (batch != null) { batch.Dispose(); batch = null; } if (primBatch != null) { primBatch.Dispose(); primBatch = null; } if (UpButton != null) { UpButton.Dispose(); UpButton = null; } if (DownButton != null) { DownButton.Dispose(); DownButton = null; } if (PosBar != null) { PosBar.Dispose(); PosBar = null; } components.Clear(); foreach (GUIComponent c in Items) { c.Dispose(); } Items.Clear(); } } }