public override bool Connect()
        {
            InvokeIfNecessary(() => panel = new AutoItFavoritePanel());
            panel.Load += panel_Load;
            InvokeIfNecessary(() => Embed(panel));
            InvokeIfNecessary(() => panel.Text = Favorite.AutoItScript());

            return(connected = true);
        }
        public override void Disconnect()
        {
            if (panel != null)
            {
                if (panel.Modified && MessageBox.Show("Would you like to save your changes?", "Save modifications?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    InvokeIfNecessary(() => Favorite.AutoItScript(panel.Text));
                }
            }

            this.CloseTabPage();
            connected = false;
        }