Beispiel #1
0
 private void TabControl_MouseDown(object sender, TabEventArgs e)
 {
     int index = e.TabIndex;
     this.ShowPage(index);
 }
Beispiel #2
0
 private void TabControl_OrderChange(object sender, TabEventArgs e)
 {
     browserControl.OrderChange(e.TabOrigin, e.TabChanged);
 }
Beispiel #3
0
        private void Tab_MouseDown(object sender, MouseEventArgs e)
        {
            if (tabs.Count > 1)
            {
                int index = tabs.IndexOf((TabButton)sender);
                TabEventArgs tabEvent = new TabEventArgs(index);

                this.OnTabMouseDown(sender, tabEvent);

                TabButton tabButton = (TabButton)sender;
                var effect = tabButton.DoDragDrop(
                    new TabIndex(tabs.IndexOf(tabButton)), DragDropEffects.All);
            }
            else
            {
                this.OnOneTabDragged(sender, e);
            }
        }