Пример #1
0
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            var name     = (string)values[0];
            var isFolder = (bool)values[1];

            if (isFolder)
            {
                return(IconManager.FindIconForDir(false));
            }

            return(IconManager.FindIconForFilename(name, false));
        }
        public void Dispose()
        {
            GC.SuppressFinalize(this);

            IconManager.ClearCache();
        }