コード例 #1
0
 protected void Add(string aValue)
 {
     iList.Add(aValue);
     iOption.Set(StringListConverter.ListToString(iList));
 }
コード例 #2
0
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var text = (string)value;

            return(StringListConverter.FromString(text, GetSeparator(parameter)));
        }
コード例 #3
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var list = ((IEnumerable <string>)value);

            return(StringListConverter.ToString(list, GetSeparator(parameter)));
        }
コード例 #4
0
 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));
 }
コード例 #5
0
ファイル: Option.cs プロジェクト: daviddw/oss-public
            public DataSource(Option aOption)
            {
                iOption = aOption;

                iList = new List <string>(StringListConverter.StringToList(iOption.Value));
            }
コード例 #6
0
 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));
 }