private void tcTerminals_TabControlMouseLeftTitle(TabControlMouseOnTitleEventArgs e) { Log.InsideMethod(); if (this.currentToolTipItem != null && !currentToolTipItem.IsDisposed && !currentToolTipItem.Disposing) { this.currentToolTip.Hide(this.currentToolTipItem); this.currentToolTip.Active = false; } }
private void tcTerminals_TabControlMouseOnTitle(TabControlMouseOnTitleEventArgs e) { Log.InsideMethod(); if (Settings.ShowInformationToolTips) { if (this.currentToolTip == null) { this.currentToolTip = new ToolTip {Active = false}; } else if ((this.currentToolTipItem != null) && (this.currentToolTipItem != e.Item) && !currentToolTipItem.IsDisposed && !currentToolTipItem.Disposing) { this.currentToolTip.Hide(this.currentToolTipItem); this.currentToolTip.Active = false; } if (!this.currentToolTip.Active) { this.currentToolTip = new ToolTip { ToolTipTitle = "Connection Information", ToolTipIcon = ToolTipIcon.Info, UseFading = true, UseAnimation = true, IsBalloon = false }; this.currentToolTip.Show(e.Item.ToolTipText, e.Item, (int)e.Item.StripRect.X, 2); this.currentToolTipItem = e.Item; this.currentToolTip.Active = true; } } }