示例#1
0
 /// <summary> </summary>
 internal void setImageList(String imageFileName)
 {
     //Form imageList : not need to Dispose the bacause it is from the ImageListCashe.
     //For image : dispose is need because it is new image according to the size of the control.
     if (GuiMgControl.IsImageButton())
     {
         _imageList = GuiUtils.getImageListItemForButtonControl(imageFileName, PBImagesNumber);
     }
 }
示例#2
0
        internal override void setSpecificControlProperties(Control control)
        {
            ControlUtils.SetContentAlignment(control, ContentAlignment);

            if (Text != null)
            {
                GuiUtils.setText(control, Text);
            }

            if (GuiMgControl.IsImageButton())
            {
                MgImageButton mgImageButton = ((MgImageButton)control);
                mgImageButton.PBImagesNumber = PBImagesNumber;
                GuiUtils.setImageList(mgImageButton, _imageList);
            }
        }