Exemplo n.º 1
0
 public MonikerAttributes(ImageMoniker imageMoniker, ColorTheme colorTheme, _UIImageType uiImageType, int width, int height)
 {
     ColorTheme   = colorTheme;
     Height       = height;
     ImageMoniker = imageMoniker;
     UiImageType  = uiImageType;
     Width        = width;
 }
        public Icon GetIcon(ImageMoniker imageMoniker, ColorTheme colorTheme, int squareSize)
        {
            const _UIImageType uiImageType = _UIImageType.IT_Icon;

            var monikerAttributes = new MonikerAttributes(imageMoniker, colorTheme, uiImageType, squareSize, squareSize);
            var icon = _imageMonikerFactory.GetIcon(monikerAttributes);

            return(icon);
        }