Exemplo n.º 1
0
 /// <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>();
 }
Exemplo n.º 2
0
        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 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;
 }
Exemplo n.º 5
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StackTabComponentContainer)component;
 }