private static IEnumerable <SelectionItem <T> > toSelectionItemEnumerable(IEnumerable <T> items) { List <SelectionItem <T> > list = new List <SelectionItem <T> >(); foreach (T item in items) { SelectionItem <T> selectionItem = new SelectionItem <T>(item); list.Add(selectionItem); } return(list); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { SelectionItem <LogItem> thisItem = (SelectionItem <LogItem>)value; return((LogItem)thisItem.SelectedItem); }