Ejemplo n.º 1
0
        public ObjectBrowser()
        {
            InitializeComponent();

            _objectBrowserViewModel = App.ServiceProvider.GetService <IObjectBrowserViewModel>();
            _objectBrowserViewModel.UpdateTreeViewHandler += ReloadTreeView;
        }
        /// <summary>
        /// Initializes a new <see cref="HubDataSourceViewModel"/>
        /// </summary>
        /// <param name="navigationService">The <see cref="INavigationService"/></param>
        /// <param name="hubController">The <see cref="IHubController"/></param>
        /// <param name="objectBrowser">The <see cref="IObjectBrowserViewModel"/></param>
        /// <param name="publicationBrowser">The <see cref="IPublicationBrowserViewModel"/></param>
        /// <param name="treeSelectorService">The <see cref="IObjectBrowserTreeSelectorService"/></param>
        /// <param name="hubBrowserHeader">The <see cref="IHubBrowserHeaderViewModel"/></param>
        /// <param name="dstController">The <see cref="IDstController"/></param>
        /// <param name="statusBar">The <see cref="IStatusBarControlViewModel"/></param>
        /// <param name="sessionControl">The <see cref="IHubSessionControlViewModel"/></param>
        public HubDataSourceViewModel(INavigationService navigationService, IHubController hubController, IObjectBrowserViewModel objectBrowser,
                                      IPublicationBrowserViewModel publicationBrowser, IObjectBrowserTreeSelectorService treeSelectorService,
                                      IHubBrowserHeaderViewModel hubBrowserHeader, IDstController dstController,
                                      IHubSessionControlViewModel sessionControl) : base(navigationService)
        {
            this.hubController       = hubController;
            this.treeSelectorService = treeSelectorService;
            this.dstController       = dstController;
            this.SessionControl      = sessionControl;
            this.ObjectBrowser       = objectBrowser;
            this.PublicationBrowser  = publicationBrowser;
            this.HubBrowserHeader    = hubBrowserHeader;

            this.InitializeCommands();
        }