Exemplo n.º 1
0
        // Disposer
        internal virtual void Dispose()
        {
            // Not already disposed?
            if (!isdisposed)
            {
                // Clean up

                // Unregister resource
                graphics.UnregisterResource(this);

                // Done
                graphics   = null;
                isdisposed = true;
            }
        }
Exemplo n.º 2
0
        // Disposer
        public void Dispose()
        {
            // Not already disposed?
            if (!isdisposed)
            {
                // Clean up
                UnloadResource();

                // Unregister as resource
                device.UnregisterResource(this);

                // Done
                device     = null;
                isdisposed = true;
            }
        }