예제 #1
0
        /// <summary>
        /// When the control is destroyed deinitialize the renderer
        /// </summary>
        /// <param name="e"></param>
        protected override void OnHandleDestroyed(EventArgs e)
        {
            base.OnHandleDestroyed(e);

            if (!DesignMode)
            {
                graphics.DeInit();
            }
        }