示例#1
0
文件: Data.cs 项目: rexad/media-plan
 public void Assign(FullName name)
 {
     this.title = name.Title;
     this.first = name.FirstName;
     this.middle = name.MiddleName;
     this.last = name.LastName;
 }
示例#2
0
文件: Helpers.cs 项目: shine8319/DLS
 public static string GetTitleNameByContactTitle(ContactTitle title) {
     switch(title) {
         case ContactTitle.Dr: return Properties.Resources.ContactTitleDr;
         case ContactTitle.Miss: return Properties.Resources.ContactTitleMiss;
         case ContactTitle.Mr: return Properties.Resources.ContactTitleMr;
         case ContactTitle.Mrs: return Properties.Resources.ContactTitleMrs;
         case ContactTitle.Ms: return Properties.Resources.ContactTitleMs;
         case ContactTitle.Prof: return Properties.Resources.ContactTitleProf;
     }
     return string.Empty;
 }
示例#3
0
文件: Data.cs 项目: rexad/media-plan
 public FullName(ContactTitle title, string first, string middle, string last)
 {
     this.title = title;
     this.first = first;
     this.middle = middle;
     this.last = last;
 }