public void RaiseCustomPageButtonClick(TabButtonInfo button) { if (CustomPageButtonClick != null) { CustomHeaderButtonEventArgs args = new CustomHeaderButtonEventArgs(button.Button as CustomHeaderButton, this); CustomPageButtonClick(this, args); } }
protected override void OnHeaderButtonClick(TabButtonInfo button) { base.OnHeaderButtonClick(button); if (button.ButtonType == TabButtonType.User) { OnActiveFilesButtonClick(new ActiveFilesButtonClickEventArgs(button)); } }
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(); } }
public ActiveFilesButtonClickEventArgs(TabButtonInfo button) { clickedButtonInfo = button; }