/// <summary>
        /// Clean up any resources being used.
        /// </summary>
        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)
            {
                Controls.Remove(m_fwTextBoxBottomMsg);
                m_fwTextBoxBottomMsg.Dispose();
                if (components != null)
                {
                    components.Dispose();
                }
            }
            m_fwTextBoxBottomMsg = null;
            m_mediator           = null;
            if (m_tsf != null)
            {
                System.Runtime.InteropServices.Marshal.ReleaseComObject(m_tsf);
            }
            m_tsf   = null;
            m_cache = null;

            base.Dispose(disposing);
        }
Beispiel #2
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                Controls.Remove(m_fwTextBoxBottomMsg);
                m_fwTextBoxBottomMsg.Dispose();
                if (components != null)
                {
                    components.Dispose();
                }
            }
            m_fwTextBoxBottomMsg = null;
            m_cache = null;

            base.Dispose(disposing);
        }