protected virtual void OnTabControlItemChanged(TabControlItemChangedEventArgs e) { if (this.TabControlItemSelectionChanged != null) { this.TabControlItemSelectionChanged(e); } }
private void FireTabItemDetach() { if (this.TabControlItemDetach != null) { var args = new TabControlItemChangedEventArgs(this.tabAtMouseDown, TabControlItemChangeTypes.Changed); this.TabControlItemDetach(args); } }
private void TcTerminals_TabDetach(TabControlItemChangedEventArgs args) { this.tcTerminals.SelectedItem = args.Item; this.terminalsControler.DetachTabToNewWindow(); }
private void TcTerminals_TabControlItemSelectionChanged(TabControlItemChangedEventArgs e) { this.UpdateControls(); this.AssingTitle(); if (this.tcTerminals.Items.Count > 0) { this.tsbDisconnect.Enabled = e.Item != null; this.disconnectToolStripMenuItem.Enabled = e.Item != null; this.SetGrabInput(true); } }
private void tcTerminals_TabControlItemSelectionChanged(TabControlItemChangedEventArgs e) { UpdateControls(); if(tcTerminals.Items.Count > 0) { tsbDisconnect.Enabled = e.Item != null; disconnectToolStripMenuItem.Enabled = e.Item != null; SetGrabInput(true); if(e.Item.Selected && Settings.ShowInformationToolTips) this.Text = e.Item.ToolTipText.Replace("\r\n", "; "); } }
protected virtual void OnTabControlItemChanged(TabControlItemChangedEventArgs e) { if (TabControlItemSelectionChanged != null) TabControlItemSelectionChanged(e); }