Browse Source

don't swallow exceptions if errors occurred while loading assembly in CQA

pull/787/head
Siegfried Pammer 15 years ago
parent
commit
830b0ab255
  1. 6
      src/AddIns/Analysis/CodeQuality/Src/MainWindow.xaml.cs

6
src/AddIns/Analysis/CodeQuality/Src/MainWindow.xaml.cs

@ -10,7 +10,6 @@ using System.Windows.Controls.Primitives;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Media; using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using GraphSharp.Controls; using GraphSharp.Controls;
using ICSharpCode.CodeQualityAnalysis.Controls; using ICSharpCode.CodeQualityAnalysis.Controls;
using ICSharpCode.CodeQualityAnalysis.Utility; using ICSharpCode.CodeQualityAnalysis.Utility;
@ -78,6 +77,11 @@ namespace ICSharpCode.CodeQualityAnalysis
dataContext.ProgressbarVisible = Visibility.Hidden; dataContext.ProgressbarVisible = Visibility.Hidden;
dataContext.AssemblyStatsVisible = Visibility.Visible; dataContext.AssemblyStatsVisible = Visibility.Visible;
dataContext.MainTabEnable = true; dataContext.MainTabEnable = true;
if (args.Error != null) {
ICSharpCode.Core.MessageService.ShowException(args.Error);
return;
}
Helper.FillTree(definitionTree, metricsReader.MainModule); Helper.FillTree(definitionTree, metricsReader.MainModule);
dataContext.MainModule = metricsReader.MainModule; dataContext.MainModule = metricsReader.MainModule;

Loading…
Cancel
Save