Пример #1
0
        private StandardExplorerBar CreateStandardExplorerBar(params IExplorerBarItem[] items)
        {
            var explorerBar = new StandardExplorerBar(_serviceLocator);

            explorerBar.Items.AddRange(items);

            return(explorerBar);
        }
Пример #2
0
        public IExplorerBar GetCheckedItemsAsExplorerBar()
        {
            var explorerBar = new StandardExplorerBar(ServiceLocator);

            if (this.Items.Count == 0)
            {
                return(explorerBar);
            }

            explorerBar.Items.AddRange(GetCheckedItems(this.Items,
                                                       item => new ExplorerBarItemWrapper(item,
                                                                                          explorerBar,
                                                                                          ServiceLocator)));

            return(explorerBar);
        }