// enum name, translated name, image static public List <Tuple <string, string, Image> > GetNameImageOfEvents(string[] methods = null, bool sort = false) { List <JournalTypeEnum> jevents = JournalEntry.GetEnumOfEvents(methods); var list = jevents.Select(x => new Tuple <string, string, Image>(x.ToString(), TranslatedEventNames[x], JournalTypeIcons.ContainsKey(x) ? JournalTypeIcons[x] : JournalTypeIcons[JournalTypeEnum.Unknown])).ToList(); if (sort) { list.Sort(delegate(Tuple <string, string, Image> left, Tuple <string, string, Image> right) // in order, oldest first { return(left.Item2.ToString().CompareTo(right.Item2.ToString())); }); } return(list); }