private void NavigateToControl()
 {
     ButtonsEnabled      = false;
     ProgressWindow.Text = "Load BIM Explorer.";
     ProgressWindow.Show();
     _webViewer.NavigateToControl(_integrationBase.CurrentProject.Id);
 }
 private void OnDataChanged(object sender, EventArgs eventArgs)
 {
     if (Data == null)
     {
         return;
     }
     if (Data.GetType() == typeof(DtoShortProject))
     {
         var dtoProject = Data as DtoShortProject;
         if (dtoProject != null)
         {
             _webViewer.NavigateToControl(dtoProject.Id);
         }
     }
 }
        /// <summary>
        /// Load start properties and controls.
        /// </summary>
        /// <param name="integrationBase"></param>
        /// <param name="parent"></param>
        public void LoadContent(IntegrationBase integrationBase)
        {
            _integrationBase = integrationBase;

            _integrationBase.EventHandlerCore.IssueViewSelected += EventHandlerCore_IssueViewSelected;
            _integrationBase.EventHandlerCore.IssueSelected     += EventHandlerCore_IssueSelected;
            _integrationBase.EventHandlerCore.ObjectSelected    += EventHandlerCore_ObjectSelected;
            _integrationBase.EventHandlerCore.ProjectChanged    += EventHandlerCore_ProjectChanged;
            _integrationBase.EventHandlerCore.DataLoaded        += EventHandlerCore_DataLoaded;

            _webViewer = new WebViewer(integrationBase);

            _webViewer.NavigateToControl(integrationBase.CurrentProject.Id);
            _webViewer.LoadCompleted += webViewer_LoadCompleted;

            BimExplorer.Content = _webViewer;

            _listControl = new IssueListControl(integrationBase);
            _listControl.LoadCompleted += listControl_LoadCompleted;
            IssueList.Content           = _listControl;

            _detailsControl      = new IssueDetailsControl(integrationBase);
            IssueDetails.Content = _detailsControl;
        }