/// <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); } }
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); } }