/// <summary> /// Update the list of DocumentedAssembly files and refreshes the document map. /// </summary> /// <returns>The updated LiveDocument.</returns> internal LiveDocument Update() { _liveDocument = new LiveDocument(_project.GetAssemblies(), _project.VisibilityFilters); _liveDocument.Settings.VisibilityFilters = _project.VisibilityFilters; _liveDocument.Update(); return(_liveDocument); }
/// <summary> /// Updates the view of the live document. This is just the document map in the /// tree view. /// </summary> public void UpdateView() { LiveDocument document = LiveDocumentorFile.Singleton.Update(); this.documentMap.ItemsSource = document.Map; if (document.Map.Count > 0) { this.pageViewer.Document = ((LiveDocumenterEntry)document.Map[0]).Page; } else { // There are no entries in this project/solution this.documentMap.ItemsSource = new Entry[] { new EmptyEntry("There are no libraries.") }; this.pageViewer.Document = new Pages.Page(); } }