protected override void SetSpecificValue(Image value)
        {
            if (value == null)
            {
                value = Resources.DefaultBitmap;
            }

            var icons = m_IconsConv.ConvertIcon(new ControlIcon(value, m_Size), true);

            SwSpecificControl.SetBitmapByName(icons[0], icons[1]);

            m_Image = value;
        }
Exemplo n.º 2
0
        protected override void SetSpecificValue(Image value)
        {
            if (value == null)
            {
                value = IconsConverter.FromXImage(Defaults.Icon);
            }

            var icons = m_IconsConv.ConvertIcon(new ControlIcon(value, m_Size));

            SwSpecificControl.SetBitmapByName(icons[0], icons[1]);

            m_Image = value;
        }
        protected override void SetSpecificValue(Image value)
        {
            IXImage img;

            if (value == null)
            {
                img = Defaults.Icon;
            }
            else
            {
                img = new BaseImage(ImageToByteArray(value));
            }

            var icons = m_IconsConv.ConvertIcon(new ControlIcon(img, m_Size));

            SwSpecificControl.SetBitmapByName(icons[0], icons[1]);

            m_Image = value;
        }