Example #1
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)
        {
            System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
            if (disposing && (components != null))
            {
                components.Dispose();

                if (m_timer != null)
                {
                    m_timer.Stop();
                    m_timer.Dispose();
                    m_timer = null;
                }

                if (m_owningDropDown != null)
                {
                    m_owningDropDown.Dispose();
                    m_owningDropDown = null;
                }

                if (m_host != null)
                {
                    m_host.Dispose();
                    m_host = null;
                }
            }

            base.Dispose(disposing);
        }
Example #2
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_timer != null)
                {
                    m_timer.Stop();
                    m_timer.Dispose();
                    m_timer = null;
                }

                if (m_owningDropDown != null)
                {
                    m_owningDropDown.Dispose();
                    m_owningDropDown = null;
                }

                if (m_host != null)
                {
                    m_host.Dispose();
                    m_host = null;
                }
            }

            base.Dispose(disposing);
        }
Example #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && ThisDropDown != null)
     {
         ThisDropDown.Dispose();
         ThisDropDown = null;
     }
     base.Dispose(disposing);
 }
Example #4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (dropDown != null)
         {
             dropDown.Dispose();
             dropDown = null;
         }
     }
     base.Dispose(disposing);
 }
Example #5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         Application.RemoveMessageFilter(this);
         if (ToolStripDropDown != null)
         {
             ToolStripDropDown.Dispose();
             ToolStripDropDown = null;
         }
     }
     base.Dispose(disposing);
 }
        /// <summary>
        /// Disposes the object.
        /// </summary>
        private void Dispose(bool disposing)
        {
            if (false == _disposed)
            {
                // clean native resources

                if (disposing)
                {
                    // clean managed resources
                    _checkedListBox.Dispose();
                    _popUp.Dispose();
                }

                _disposed = true;
            }
        }
Example #7
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (m_dropDown != null)
         {
             m_dropDown.Dispose();
         }
         foreach (var action in m_disposeActions)
         {
             action.Execute();
         }
     }
     ClearCaret();
 }
 /// <summary>
 /// 使用中のリソースをすべてクリーンアップします。
 /// </summary>
 /// <param name="disposing">マネージド リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (pictureBox.Image != null))
     {
         pictureBox.Image.Dispose();
     }
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     if (disposing && (toolStripDropDown != null))
     {
         toolStripDropDown.Dispose();
     }
     if (disposing && (colorSettingControl != null))
     {
         colorSettingControl.Dispose();
     }
     base.Dispose(disposing);
 }
 public void Dispose()
 {
     m_control.Resize -= MControlResize;
     m_tsdd.Dispose();
     m_hostPanel.Dispose();
 }