C# Code to Implement a Child Collection Item

Back to Implementing the Collection Item
using System.Drawing; using System.IO; public class ProductImageEntity : EPS.Business.BusinessObjects.EntitySubItemCollectionItem { public ProductImagesEntity (IEntitySubItemCollection parentCollection): base(parentCollection) { } public string Label { get { return (string) this.GetFieldValue("clabel"); } set { this.SetFieldValue("clabel", value); } } public Image bitmap { get { if (this.GetFieldValue("iimage").ToString() = "") { return null; } Image bmpFile = null; try { bmpFile = new Bitmap(stmFile); } catch { bmpFile = null; } return bmpFile; } set { MemoryStream stmFile; value.Save(stmFile, System.Drawing.Imaging.ImageFormat.Jpeg); this.SetFieldValue("iimage", stmfile.ToArray); } } }

Back to Implementing the Collection Item


Last Updated: 8/10/2006