Пример #1
0
        private string BuildFavoriteToolTip()
        {
            IFavorite favorite = this.CreateTestFavorite();
            var       bulder   = new ToolTipBuilder(new PersistenceSecurity());

            return(bulder.BuildTooTip(favorite));
        }
Пример #2
0
        private void TryConnectTabPage(IFavorite origin, IFavorite configured, TerminalTabControlItem terminalTabPage)
        {
            try
            {
                this.mainForm.AssignEventsToConnectionTab(terminalTabPage);
                var toolTipBuilder = new ToolTipBuilder(this.persistence.Security);
                var toolTipText    = toolTipBuilder.BuildTooTip(configured);
                this.ConfigureTabPage(terminalTabPage, toolTipText, true);

                var conn = CreateConnection(origin, configured, terminalTabPage);
                this.UpdateConnectionTabPageByConnectionState(configured, terminalTabPage, conn);

                if (conn.Connected && configured.NewWindow)
                {
                    this.terminalsControler.DetachTabToNewWindow(terminalTabPage);
                }
            }
            catch (Exception exc)
            {
                Logging.Error("Error Creating A Terminal Tab", exc);
                this.terminalsControler.UnSelect();
            }
        }