示例#1
0
文件: Data.cs 项目: rexad/media-plan
 public void Assign(Address address)
 {
     this.address = address.AddressLine;
     this.state = address.State;
     this.city = address.City;
     this.zip = address.Zip;
 }
示例#2
0
文件: Data.cs 项目: rexad/media-plan
 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"]));
 }
示例#3
0
文件: Data.cs 项目: rexad/media-plan
 public Contact()
 {
     name = new FullName(Properties.Resources.NewFirstName, string.Empty, Properties.Resources.NewLastName);
     address = new Address();
 }
示例#4
0
文件: Data.cs 项目: rexad/media-plan
 public Contact(Contact contact)
 {
     name = new FullName();
     address = new Address();
     this.Assign(contact);
 }
示例#5
0
文件: Data.cs 项目: shine8319/DLS
 public Contact() {
     name = new FullName(DevExpress.ProductsDemo.Win.Properties.Resources.NewFirstName, string.Empty, DevExpress.ProductsDemo.Win.Properties.Resources.NewLastName);
     address = new Address();
 }