public override void Disconnect()
        {
            // Dispose Tiny Mce
            if (tinyMce != null)
            {
                tinyMce.Dispose();
            }

            connected = false;

            // If we are coming from TextFavoritePanel
            if (Favorite != null)
            {
                // Close the tab page
                this.CloseTabPage();
            }
        }
        public override void Disconnect()
        {
            if (!connected)
            {
                return;
            }

            // Dispose Tiny Mce
            if (tinyMce != null)
            {
                tinyMce.Dispose();
            }

            connected = false;

            // If we are coming from TextFavoritePanel
            if (Favorite != null)
            {
                // Close the tab page
                this.CloseTabPage();
            }

            InvokeIfNecessary(() => base.Disconnect());
        }