private void ParseCompleted(SDProject sdProject) { Application.Current.Dispatcher.BeginInvoke( DispatcherPriority.Background, new Action(() => { TreeView = new VisibilityItemList(_sharpDoxConfig); if (sdProject != null) { foreach (var sdSolution in sdProject.Solutions.Values) { foreach (var sdRepository in sdSolution.Repositories) { foreach (var sdNamespace in sdRepository.GetAllNamespaces()) { TreeView.Add(new NamespaceViewModel(sdNamespace, _sharpDoxConfig)); TreeLoaded = true; } } } } IsTreeRefreshing = false; })); }
private void ParseStopped() { Application.Current.Dispatcher.BeginInvoke( DispatcherPriority.Background, new Action(() => { TreeView = new VisibilityItemList(); IsTreeRefreshing = false; })); }
private void ParseStopped() { Application.Current.Dispatcher.BeginInvoke( DispatcherPriority.Background, new Action(() => { TreeView = new VisibilityItemList(_sharpDoxConfig); IsTreeRefreshing = false; })); }
private void ConfigChanged(object sender, PropertyChangedEventArgs args) { if (args.PropertyName == "InputPath" && !string.IsNullOrEmpty(_sharpDoxConfig.InputPath)) { RefreshTreeView(); } else if (args.PropertyName == "InputPath" && string.IsNullOrEmpty(_sharpDoxConfig.InputPath)) { TreeView = new VisibilityItemList(); } }
private void ConfigChanged(object sender, PropertyChangedEventArgs args) { if (args.PropertyName == "InputFile" && _sharpDoxConfig.InputFile != null) { RefreshTreeView(); } else if (args.PropertyName == "InputFile" && _sharpDoxConfig.InputFile == null) { TreeView = new VisibilityItemList(_sharpDoxConfig); TreeLoaded = false; } }
private void ParseCompleted(SDRepository repository) { Application.Current.Dispatcher.BeginInvoke( DispatcherPriority.Background, new Action(() => { TreeView = new VisibilityItemList(); if (repository != null) { foreach (var sdNamespace in repository.GetAllNamespaces()) { TreeView.Add(new NamespaceViewModel(sdNamespace, _sharpDoxConfig.ExcludedIdentifiers)); } } IsTreeRefreshing = false; })); }
private void ParseCompleted(SDRepository repository) { Application.Current.Dispatcher.Invoke( DispatcherPriority.Background, new Action(() => { TreeView = new VisibilityItemList(); if (repository != null) { foreach (var sdNamespace in repository.GetAllNamespaces()) { TreeView.Add(new NamespaceViewModel(sdNamespace, _sharpDoxConfig.ExcludedIdentifiers)); } } IsTreeRefreshing = false; })); }