示例#1
0
 protected virtual void OnTabControlItemChanged(TabControlItemChangedEventArgs e)
 {
     if (this.TabControlItemSelectionChanged != null)
     {
         this.TabControlItemSelectionChanged(e);
     }
 }
示例#2
0
 private void FireTabItemDetach()
 {
     if (this.TabControlItemDetach != null)
     {
         var args = new TabControlItemChangedEventArgs(this.tabAtMouseDown, TabControlItemChangeTypes.Changed);
         this.TabControlItemDetach(args);
     }
 }
示例#3
0
 private void TcTerminals_TabDetach(TabControlItemChangedEventArgs args)
 {
     this.tcTerminals.SelectedItem = args.Item;
     this.terminalsControler.DetachTabToNewWindow();
 }
示例#4
0
        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);
            }
        }
示例#5
0
 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", "; ");
     }
 }
示例#6
0
 private void FireTabItemDetach()
 {
     if (this.TabControlItemDetach != null)
     {
         var args = new TabControlItemChangedEventArgs(this.tabAtMouseDown, TabControlItemChangeTypes.Changed);
         this.TabControlItemDetach(args);
     }
 }
示例#7
0
 protected virtual void OnTabControlItemChanged(TabControlItemChangedEventArgs e)
 {
     if (TabControlItemSelectionChanged != null)
         TabControlItemSelectionChanged(e);
 }