Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Domain/Patrocinador.cs @ 138:62791999ad01
Agregando relación entre Evento y Patrocinador
author | nelopauselli |
---|---|
date | Thu, 28 Jul 2011 10:13:28 -0300 |
parents | 2d1adbaf0373 |
children | 62dc9fb3a03e |
line wrap: on
line source
using System.Drawing; using System.IO; using System.Linq; using System.IO; namespace AltNetHispano.Agendas.Domain { public class Patrocinador : Identificable { public virtual string Nombre { get; set; } public virtual byte[] Logo { get; set; } public Patrocinador(string nombre) { Nombre = nombre; } protected Patrocinador() { } public virtual void LoadLogo(string path) { var image = Image.FromFile(path); var ms = new MemoryStream(); image.Save(ms, image.RawFormat); Logo = ms.ToArray(); } } }