comparison 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
comparison
equal deleted inserted replaced
137:2d1adbaf0373 138:62791999ad01
1 using System; 1 using System.Drawing;
2 using System.IO;
3 using System.Linq;
4 using System.IO;
2 5
3 namespace AltNetHispano.Agendas.Domain 6 namespace AltNetHispano.Agendas.Domain
4 { 7 {
5 public class Patrocinador : Identificable 8 public class Patrocinador : Identificable
6 { 9 {
13 } 16 }
14 17
15 protected Patrocinador() 18 protected Patrocinador()
16 { 19 {
17 } 20 }
21
22 public virtual void LoadLogo(string path)
23 {
24 var image = Image.FromFile(path);
25 var ms = new MemoryStream();
26 image.Save(ms, image.RawFormat);
27 Logo = ms.ToArray();
28 }
18 } 29 }
19 } 30 }