Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 24eb15f

Browse files
committed
AddIn Scout: Do not add extra SubItems if more than one Condition
1 parent 74400d6 commit 24eb15f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/AddIns/Misc/AddinScout/Project/Src/Gui/CodonListPanel.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
using System;
2020
using System.Drawing;
21+
using System.Linq;
2122
using System.Windows.Forms;
2223

2324
using ICSharpCode.Core;
@@ -105,9 +106,7 @@ public void ListCodons(string path)
105106

106107
lvi.SubItems.Add(c.Properties.Contains("class") ? c.Properties["class"] : "");
107108

108-
foreach (ICondition condition in c.Conditions) {
109-
lvi.SubItems.Add(condition.Name + ", " + condition.Action);
110-
}
109+
lvi.SubItems.Add(string.Join(";", c.Conditions.Select(a => a.Name + ": " + a.Action)));
111110
CodonLV.Items.Add(lvi);
112111
}
113112
}

0 commit comments

Comments
 (0)