Beispiel #1
0
 public void Assign(NombreCompleto name)
 {
     this.titulo  = name.Titulo;
     this.primero = name.PimerNombre;
     this.medio   = name.SegundoNombre;
     this.utimo   = name.Apellidos;
 }
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 Contacto(Contacto contact)
 {
     name      = new NombreCompleto();
     direccion = new Address();
     this.Assign(contact);
 }
Beispiel #4
0
 public Contacto()
 {
     //name = new FullName(Properties.Resources.NewFirstName, string.Empty, Properties.Resources.NewLastName);
     name      = new NombreCompleto("", "", "");
     direccion = new Address();
 }