Example #1
0
        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 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;
            }));
        }
Example #3
0
 private void ParseStopped()
 {
     Application.Current.Dispatcher.BeginInvoke(
         DispatcherPriority.Background,
         new Action(() =>
     {
         TreeView         = new VisibilityItemList();
         IsTreeRefreshing = false;
     }));
 }
Example #4
0
 private void ParseStopped()
 {
     Application.Current.Dispatcher.BeginInvoke(
         DispatcherPriority.Background,
         new Action(() =>
         {
             TreeView = new VisibilityItemList(_sharpDoxConfig);
             IsTreeRefreshing = false;
         }));
 }
Example #5
0
 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 == "InputPath" && !string.IsNullOrEmpty(_sharpDoxConfig.InputPath))
     {
         RefreshTreeView();
     }
     else if (args.PropertyName == "InputPath" && string.IsNullOrEmpty(_sharpDoxConfig.InputPath))
     {
         TreeView = new VisibilityItemList();
     }
 }
Example #7
0
 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 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;
     }
 }
Example #9
0
        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;
            }));
        }
Example #10
0
        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;
                }));
        }