diff --git a/EliteBGS/MainWindow.xaml.cs b/EliteBGS/MainWindow.xaml.cs index 7d546a8..997c99a 100644 --- a/EliteBGS/MainWindow.xaml.cs +++ b/EliteBGS/MainWindow.xaml.cs @@ -68,11 +68,12 @@ public partial class MainWindow : Window { TransactionParser parser = new TransactionParser(); List transactions = parser.Parse(entries); + List incompletes = transactions.OfType().ToList(); // Log incomplete and remove them from the results. - foreach (var incomplete in transactions.OfType()) { + foreach (var incomplete in incompletes) { Log(incomplete.Reason); - transactions.Remove(incomplete); } + transactions.RemoveAll(x => incompletes.Contains(x)); report = new Report(transactions); this.entries.ItemsSource = report.Objectives;