public void Assign(Address address) { this.address = address.AddressLine; this.state = address.State; this.city = address.City; this.zip = address.Zip; }
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() { name = new FullName(Properties.Resources.NewFirstName, string.Empty, Properties.Resources.NewLastName); address = new Address(); }
public Contact(Contact contact) { name = new FullName(); address = new Address(); this.Assign(contact); }
public Contact() { name = new FullName(DevExpress.ProductsDemo.Win.Properties.Resources.NewFirstName, string.Empty, DevExpress.ProductsDemo.Win.Properties.Resources.NewLastName); address = new Address(); }