Exemple #1
0
 public void Assign(FullName name)
 {
     this.title = name.Title;
     this.first = name.FirstName;
     this.middle = name.MiddleName;
     this.last = name.LastName;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public FullName(ContactTitle title, string first, string middle, string last)
 {
     this.title = title;
     this.first = first;
     this.middle = middle;
     this.last = last;
 }