Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Domain/Patrocinador.cs @ 285:c8f378272407
#123: Patrocinadores de las vans.
author | juanjose.montesdeocaarbos |
---|---|
date | Sat, 31 Dec 2011 14:45:55 -0300 |
parents | 6f5ab71614d4 |
children | 9bc60d166c8a |
line wrap: on
line source
using System.Drawing; 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) { using (var image = Image.FromFile(path)) { var ms = new MemoryStream(); image.Save(ms, image.RawFormat); Logo = ms.ToArray(); } } } }