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);
        }
Exemple #2
0
 public void Dispose()
 {
     MainWindow.Dispose();
     GuiRenderer.Dispose();
 }