コード例 #1
0
 public void RaiseCustomPageButtonClick(TabButtonInfo button)
 {
     if (CustomPageButtonClick != null)
     {
         CustomHeaderButtonEventArgs args = new CustomHeaderButtonEventArgs(button.Button as CustomHeaderButton, this);
         CustomPageButtonClick(this, args);
     }
 }
コード例 #2
0
        protected override void OnHeaderButtonClick(TabButtonInfo button)
        {
            base.OnHeaderButtonClick(button);

            if (button.ButtonType == TabButtonType.User)
            {
                OnActiveFilesButtonClick(new ActiveFilesButtonClickEventArgs(button));
            }
        }
コード例 #3
0
        protected override TabButtonInfo CreateButton(TabButtonType button)
        {
            if (button == TabButtonType.User)
            {
                ButtonPredefines predefine = Orientation == TabOrientation.Horizontal ? ButtonPredefines.Down : ButtonPredefines.Right;
                TabButtonInfo    tabBtn    = new TabButtonInfo(new EditorButton(predefine), button);
                return(tabBtn);
            }

            return(base.CreateButton(button));
        }
 protected override void OnClickButton(TabButtonInfo button)
 {
     keepButtons++;
     try
     {
         if (CanRaiseHeaderButtonClick(button))
         {
             PageDescendant.RaiseCustomPageButtonClick(button);
         }
     }
     finally
     {
         keepButtons--;
     }
     if (!TabViewInfo.IsDisposing)
     {
         TabViewInfo.LayoutChanged();
     }
 }
コード例 #5
0
 public ActiveFilesButtonClickEventArgs(TabButtonInfo button)
 {
     clickedButtonInfo = button;
 }