This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/AddIns/Misc/AddinScout/Project/Src/Gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919using System ;
2020using System . Drawing ;
21+ using System . Linq ;
2122using System . Windows . Forms ;
2223
2324using 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 }
You can’t perform that action at this time.
0 commit comments