コード例 #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;
                }));
        }
コード例 #2
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;
            }));
        }
コード例 #3
0
 private void ParseStopped()
 {
     Application.Current.Dispatcher.BeginInvoke(
         DispatcherPriority.Background,
         new Action(() =>
     {
         TreeView         = new VisibilityItemList();
         IsTreeRefreshing = false;
     }));
 }
コード例 #4
0
 private void ParseStopped()
 {
     Application.Current.Dispatcher.BeginInvoke(
         DispatcherPriority.Background,
         new Action(() =>
         {
             TreeView = new VisibilityItemList(_sharpDoxConfig);
             IsTreeRefreshing = false;
         }));
 }
コード例 #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();
     }
 }
コード例 #6
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();
     }
 }
コード例 #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;
     }
 }
コード例 #8
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;
     }
 }
コード例 #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;
            }));
        }
コード例 #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;
                }));
        }