Beispiel #1
0
 public void Assign(Contacto contact)
 {
     this.foto = contact.Foto;
     this.name.Assign(contact.FullName);
     this.direccion.Assign(contact.Direccion);
     this.email            = contact.Email;
     this.genero           = contact.Genero;
     this.fecha_nacimiento = contact.FechaNacimiento;
     this.telefono         = contact.Telefono;
     this.nota             = contact.Nota;
 }
Beispiel #2
0
        public Contacto(DataRow customer, DataRow person)
        {
            this.customer = customer;
            this.person   = person;
            if (!(customer["foto"] is DBNull))
            {
                foto     = ByteImageConverter.FromByteArray((byte[])customer["foto"]);
                hay_foto = true;
            }
            //else foto = global::DevExpress.MailClient.Win.Properties.Resources.Unknown_user;

            name             = new NombreCompleto(string.Format("{0}", person["FirstName"]), string.Format("{0}", customer["MiddleName"]), string.Format("{0}", person["LastName"]));
            email            = string.Format("{0}", customer["Email"]).Replace("dxvideorent.com", "dxmail.net");
            genero           = (eGenero)person["Gender"];
            fecha_nacimiento = (DateTime?)person["BirthDate"];
            telefono         = string.Format("{0}", customer["Phone"]);
            direccion        = new Address(string.Format("{0}", customer["Address"]));
        }
Beispiel #3
0
        public Pelicula(string nombre, string actorprincipal, DateTime fecha, string reseña, eGenero genero, string director, int punt)
        {
            this.ActorPrincipal     = actorprincipal;
            this.Nombre             = nombre;
            this.Fecha              = fecha;
            this.Precio             = 50;
            this.Reseña             = reseña;
            this.Alquilada          = false;
            this.Genero             = genero;
            this.Director           = director;
            this.contadoralquiladas = 0;
            this.contadorvistas     = 0;

            this.Puntuacion = punt;
        }