protected void Add(string aValue) { iList.Add(aValue); iOption.Set(StringListConverter.ListToString(iList)); }
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { var text = (string)value; return(StringListConverter.FromString(text, GetSeparator(parameter))); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var list = ((IEnumerable <string>)value); return(StringListConverter.ToString(list, GetSeparator(parameter))); }
private static void ApplyAsOneItem(IList<string> target, IEnumerable<string> source) { // The WinRT API does not support some of the multiple tags for MP3 files; it aborts saving the metadata without error :-( target.Clear(); target.Add(StringListConverter.ToString(source)); }
public DataSource(Option aOption) { iOption = aOption; iList = new List <string>(StringListConverter.StringToList(iOption.Value)); }
private static void ApplyAsOneItem(IList <string> target, IEnumerable <string> source) { // The WinRT API does not support some of the multiple tags for MP4 files target.Clear(); target.Add(StringListConverter.ToString(source)); }