public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            EnumConfigurationType configType = (EnumConfigurationType)value;
            string imagePath = "";

            switch (configType)
            {
            case EnumConfigurationType.MyComputer:
                imagePath = Directory.GetCurrentDirectory() + "\\images\\computer.jpg";
                break;

            case EnumConfigurationType.Folder:
                imagePath = Directory.GetCurrentDirectory() + "\\images\\folder.jpg";
                break;

            case EnumConfigurationType.RegisterGroup:
                imagePath = Directory.GetCurrentDirectory() + "\\images\\device.jpg";
                break;
            }

            return(Utilities.CreateImage(imagePath));
        }
        public static BitmapImage convert(EnumConfigurationType configType)
        {
            ConfigTypeToImageSourceConverter converter = new ConfigTypeToImageSourceConverter();

            return((BitmapImage)converter.Convert(configType, typeof(BitmapImage), null, null));
        }