public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var modes = value as FileOperationMode[]; var results = new List <string>(modes.Length); foreach (var mode in modes) { results.Add(FileOperationModeConverter.EnumToTranslatedString(mode)); } return(results); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var mode = (FileOperationMode)value; return(FileOperationModeConverter.EnumToTranslatedString(mode)); }