public void Assign(Contact contact) { this.photo = contact.Photo; this.name.Assign(contact.FullName); this.address.Assign(contact.Address); this.email = contact.Email; this.gender = contact.Gender; this.birthDate = contact.BirthDate; this.phone = contact.Phone; this.note = contact.Note; }
public Contact(DataRow customer, DataRow person) { this.customer = customer; this.person = person; if (!(customer["Photo"] is DBNull)) { photo = ByteImageConverter.FromByteArray((byte[])customer["Photo"]); hasPhoto = true; } else { photo = global::DevExpress.MailClient.Win.Properties.Resources.Unknown_user; } name = new FullName(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"); gender = (ContactGender)person["Gender"]; birthDate = (DateTime?)person["BirthDate"]; phone = string.Format("{0}", customer["Phone"]); address = new Address(string.Format("{0}", customer["Address"])); }
public Contact(DataRow customer, DataRow person) { this._customer = customer; this._person = person; if (!(customer["Photo"] is DBNull)) { _photo = XtraEditors.Controls.ByteImageConverter.FromByteArray((byte[])customer["Photo"]); _hasPhoto = true; } else { _photo = global::DevExpress.ProductsDemo.Win.Properties.Resources.Unknown_user; } _name = new FullName(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"); _gender = (ContactGender)person["Gender"]; _birthDate = (DateTime?)person["BirthDate"]; _phone = string.Format("{0}", customer["Phone"]); _address = new Address(string.Format("{0}", customer["Address"])); }
public void Assign(Contact contact) { this.photo = contact.Photo; this.name.Assign(contact.FullName); this.address.Assign(contact.Address); this.email = contact.Email; this.gender = contact.Gender; this.birthDate = contact.BirthDate; this.phone = contact.Phone; this.note = contact.Note; }
public Contact(DataRow customer, DataRow person) { this.customer = customer; this.person = person; if(!(customer["Photo"] is DBNull)) { photo = ByteImageConverter.FromByteArray((byte[])customer["Photo"]); hasPhoto = true; } else photo = global::DevExpress.MailClient.Win.Properties.Resources.Unknown_user; name = new FullName(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"); gender = (ContactGender)person["Gender"]; birthDate = (DateTime?)person["BirthDate"]; phone = string.Format("{0}", customer["Phone"]); address = new Address(string.Format("{0}", customer["Address"])); }