Ejemplo n.º 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)
        {
            if (disposing && RibbonDesigner.Current == null)
            {
                // ADDED
                _TT.Popup -= _TT_Popup;

                _TT.Dispose();
                try
                {
                    foreach (RibbonPanel p in Panels)
                    {
                        p.Dispose();
                    }
                }
                catch (InvalidOperationException)
                {
                    if (!IsOpenInVisualStudioDesigner())
                    {
                        throw;
                    }
                }
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _TT.Dispose();
                foreach (RibbonPanel p in _panels)
                {
                    p.Dispose();
                }
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 3
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && RibbonDesigner.Current == null)
            {
                _flashTimer.Enabled = false;
                _TT.Dispose();
                if (Image != null)
                {
                    Image.Dispose();
                }
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 4
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && RibbonDesigner.Current == null)
            {
                // ADDED
                _TT.Popup -= _TT_Popup;

                _TT.Dispose();
                foreach (RibbonPanel p in Panels)
                {
                    p.Dispose();
                }
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 5
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && RibbonDesigner.Current == null)
            {
                _flashTimer.Enabled = false;

                // ADDED
                _TT.Popup -= _TT_Popup;

                _TT.Dispose();
                //Dont Dispose Image, could be an Ressource Image
                //if (Image != null)
                //    Image.Dispose();
            }

            base.Dispose(disposing);
        }