public TemplateInfo(TemplateInfoLight info) { base.m_dbInfo = (DataAccess.TemplateInfoDb)info; this.Name = info.Name; this.Image = new Image <Bgr, byte>((Bitmap)Bitmap.FromStream(new MemoryStream(base.m_dbInfo.Image))); this.Template = new Image <Bgr, byte>((Bitmap)Bitmap.FromStream(new MemoryStream(base.m_dbInfo.Template))); this.CoverDetails = base.m_dbInfo.HiddenAreas.ToObject <CoverInfo>(); }
public TemplateInfo() { CoverDetails = new CoverInfo(); m_dbInfo = new DataAccess.TemplateInfoDb(); }