Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (Paused != null)
            {
                Paused.Dispose();
                Paused = null;
            }

            if (RestartBtn != null)
            {
                RestartBtn.Dispose();
                RestartBtn = null;
            }

            if (SpawnBtn != null)
            {
                SpawnBtn.Dispose();
                SpawnBtn = null;
            }

            if (StopBtn != null)
            {
                StopBtn.Dispose();
                StopBtn = null;
            }

            if (UrhoSurfacePlaceholder != null)
            {
                UrhoSurfacePlaceholder.Dispose();
                UrhoSurfacePlaceholder = null;
            }
        }