private void populateSeqCounts(ItemsCounts counts, string[] seq) { for (int i = 0; i < seq.Count() - 1; i++) { counts.addItem(seq[i]); } }
private void populateAllCounts(ItemsCounts counts, string[] seq) { string[] distinctSeq = seq.Distinct().ToArray(); for (int i = 0; i < distinctSeq.Count(); i++) { counts.addItem(seq[i]); } }