Пример #1
0
        public override void Start()
        {
            BuildFolderExplorers();

            // Subscribe to page changed event before starting component, so that when component start the event will fire
            // for the initial page that open
            _stackTabComponent.CurrentPageChanged += OnCurrentPageChanged;
            _stackTabComponentContainerHost        = new ChildComponentHost(this.Host, _stackTabComponent);
            _stackTabComponentContainerHost.StartComponent();

            // register folder system instances with document manager
            foreach (var folderSystem in _folderSystems)
            {
                DocumentManager.RegisterFolderSystem(folderSystem);
            }

            // create tools
            _toolSet = new ToolSet(new FolderExplorerGroupToolExtensionPoint(), new FolderExplorerGroupToolContext(this));

            base.Start();
        }