comparison Agendas/trunk/src/Agendas.Domain/Patrocinador.cs @ 274:72a96459f910

Ticket #123: Patrocinadores de las vans.
author juanjose.montesdeocaarbos
date Wed, 30 Nov 2011 08:56:01 -0300
parents 5346c0500594
children 6f5ab71614d4
comparison
equal deleted inserted replaced
273:a7420f05716a 274:72a96459f910
1 using System.Drawing; 1 using System.Drawing;
2 using System.IO; 2 using System.IO;
3 3
4 namespace AltNetHispano.Agendas.Domain 4 namespace AltNetHispano.Agendas.Domain
5 { 5 {
6 //public class Patrocinador : Identificable 6 public class Patrocinador : Identificable
7 //{ 7 {
8 // public virtual string Nombre { get; set; } 8 public virtual string Nombre { get; set; }
9 // public virtual byte[] Logo { get; set; } 9 public virtual byte[] Logo { get; set; }
10 10
11 // public Patrocinador(string nombre) 11 public Patrocinador(string nombre)
12 // { 12 {
13 // Nombre = nombre; 13 Nombre = nombre;
14 // } 14 }
15 15
16 // protected Patrocinador() 16 protected Patrocinador()
17 // { 17 {
18 // } 18 }
19 19
20 // public virtual void LoadLogo(string path) 20 public virtual void LoadLogo(string path)
21 // { 21 {
22 // var image = Image.FromFile(path); 22 var image = Image.FromFile(path);
23 // var ms = new MemoryStream(); 23 var ms = new MemoryStream();
24 // image.Save(ms, image.RawFormat); 24 image.Save(ms, image.RawFormat);
25 // Logo = ms.ToArray(); 25 Logo = ms.ToArray();
26 // } 26 }
27 //} 27 }
28 } 28 }