예제 #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged
        /// resources; <c>false</c> to release only unmanaged resources.
        /// </param>
        /// ------------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (m_fntVern != null)
                {
                    m_fntVern.Dispose();
                    m_fntVern = null;
                }
                if (m_fileDialog != null)
                {
                    m_fileDialog.Dispose();
                    m_fileDialog = null;
                }
            }

            base.Dispose(disposing);
        }
예제 #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged
        /// resources; <c>false</c> to release only unmanaged resources.
        /// </param>
        /// ------------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (m_fntVern != null)
                {
                    m_fntVern.Dispose();
                    m_fntVern = null;
                }
                if (m_fileDialog != null)
                {
                    m_fileDialog.Dispose();
                    m_fileDialog = null;
                }
            }

            base.Dispose(disposing);
        }
예제 #3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise,
 /// false.</param>
 /// ------------------------------------------------------------------------------------
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
         if (m_fileDialog != null)
         {
             m_fileDialog.Dispose();
             m_fileDialog = null;
         }
     }
     base.Dispose(disposing);
 }