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

Commit ec68f28

Browse files
committed
Merge pull request #428 from linquize/addinscout-label
AddIn Scout: Add Label column
2 parents b805eb4 + dfbb94f commit ec68f28

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 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;
@@ -53,6 +54,7 @@ public CodonListPanel()
5354
CodonLV.Columns.Add("Codon ID", 175,HorizontalAlignment.Left);
5455
CodonLV.Columns.Add("Codon Class", 400,HorizontalAlignment.Left);
5556
CodonLV.Columns.Add("Codon Condition -> Action on Fail", 600,HorizontalAlignment.Left);
57+
CodonLV.Columns.Add("Label", 450, HorizontalAlignment.Left);
5658

5759
ExtTextBox.Text = "Extension : ";
5860
ExtTextBox.ReadOnly = true;
@@ -105,9 +107,8 @@ public void ListCodons(string path)
105107

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

108-
foreach (ICondition condition in c.Conditions) {
109-
lvi.SubItems.Add(condition.Name + ", " + condition.Action);
110-
}
110+
lvi.SubItems.Add(string.Join(";", c.Conditions.Select(a => a.Name + ": " + a.Action)));
111+
lvi.SubItems.Add(c.Properties.Contains("label") ? c.Properties["label"] : "");
111112
CodonLV.Items.Add(lvi);
112113
}
113114
}

0 commit comments

Comments
 (0)