public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var status    = (ComparableStatus)value;
            var iconIndex = StatusImages.GetIndex((HgFileStatus)status);

            return(images[iconIndex]);
        }
Beispiel #2
0
        private VsStateIcon GetStatusIcon(HgFileStatus status)
        {
            var iconIndex = 0;

            if (StatusIconsLimited)
            {
                iconIndex = StatusImages.GetIndexLimited(status);
            }
            else
            {
                iconIndex = StatusImages.GetIndex(status);
            }

            return(GetStatusIcon(iconIndex));
        }