diff --git a/BGS/Report.cs b/BGS/Report.cs index f42676f..5ebdba4 100644 --- a/BGS/Report.cs +++ b/BGS/Report.cs @@ -50,13 +50,16 @@ namespace EliteBGS.BGS { where file.NormalisedTimestamp >= start && file.NormalisedTimestamp <= end select file.Entries ; - var relevant = from log in entries.SelectMany(array => array) - where IsRelevant(log) - select log - ; + Scan(entries.SelectMany(x => x).ToList()); + } + public void Scan(List entries) { + if (entries.Count <= 0) { + return; + } + + List relevant = entries.Where(x => IsRelevant(x)).ToList(); Dictionary acceptedMissions = new Dictionary(); - Dictionary buyCost = new Dictionary(); string current_system = null; diff --git a/EliteBGS.csproj b/EliteBGS.csproj index aa2c8ca..023c2c6 100644 --- a/EliteBGS.csproj +++ b/EliteBGS.csproj @@ -59,6 +59,7 @@ + @@ -90,6 +91,9 @@ + + LoadEntriesWindow.xaml + True True @@ -110,6 +114,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + MSBuild:Compile Designer diff --git a/LoadEntriesWindow.xaml b/LoadEntriesWindow.xaml new file mode 100644 index 0000000..1410bd8 --- /dev/null +++ b/LoadEntriesWindow.xaml @@ -0,0 +1,22 @@ + + + + + + + + + + + + +