protected virtual void OnDestroy() { if (updateTimer != null) { updateTimer.Stop(); updateTimer = null; } if (guiRenderer != null) { guiRenderer.Dispose(); guiRenderer = null; } controlManager = null; DestroyRenderTarget(); WPFAppWorld.renderTargetUserControls.Remove(this); }
public void Dispose() { MainWindow.Dispose(); GuiRenderer.Dispose(); }