/// <summary> /// Constructor /// </summary> public FolderExplorerGroupComponent(List <IFolderSystem> folderSystems, FolderContentsComponent contentComponent) { _folderSystems = folderSystems; _contentComponent = contentComponent; _stackTabComponent = new StackTabComponentContainer(StackStyle.ShowOneOnly, false); _folderExplorerComponents = new Dictionary <IFolderSystem, IFolderExplorerComponent>(); }
public StackTabComponentContainerControl(StackTabComponentContainer component) { InitializeComponent(); _component = component; _stackTabControl.RootDirection = Crownwood.DotNetMagic.Common.LayoutDirection.Vertical; // Set the sizing spaces between leaves _stackTabControl.ResizeBarVector = _component.StackStyle == StackStyle.ShowMultiple ? 1 : 0; _stackTabControl.PageChanged += OnControlPageChanged; CreateStackTabs(); _component.Pages.ItemAdded += OnComponentPageAdded; _component.Pages.ItemRemoved += OnComponentPageRemoved; _component.CurrentPageChanged += OnComponentCurrentPageChanged; }
public void SetComponent(IApplicationComponent component) { _component = (StackTabComponentContainer)component; }