/// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (m_viewport != null)
                {
                    m_viewport.Destroy();
                    m_viewport = null;
                }
            }
            base.Dispose(disposing);
        }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     m_view.Destroy();
     base.Dispose(disposing);
 }