Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        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());
        }