public override void Assign(GDMTag source) { GDMPersonalName otherName = (source as GDMPersonalName); if (otherName == null) { throw new ArgumentException(@"Argument is null or wrong type", "source"); } base.Assign(otherName); fFirstPart = otherName.fFirstPart; fSurname = otherName.fSurname; fLastPart = otherName.fLastPart; fLanguage = otherName.fLanguage; fNameType = otherName.fNameType; fPieces.Assign(otherName.Pieces); if (otherName.fNotes != null) { AssignList(otherName.fNotes, Notes); } if (otherName.fSourceCitations != null) { AssignList(otherName.fSourceCitations, SourceCitations); } }
public PersonalNameEditDlgController(IPersonalNameEditDlg view) : base(view) { for (GDMNameType nt = GDMNameType.ntNone; nt <= GDMNameType.ntMarried; nt++) { fView.NameType.Add(LangMan.LS(GKData.NameTypes[(int)nt])); } for (var lid = GDMLanguageID.Unknown; lid < GDMLanguageID.Yiddish; lid++) { fView.Language.AddItem(GEDCOMUtils.GetLanguageStr(lid), lid); } fView.Language.Sort(); }
public override void Clear() { base.Clear(); fFirstPart = string.Empty; fSurname = string.Empty; fLastPart = string.Empty; fLanguage = GDMLanguageID.Unknown; fNameType = GDMNameType.ntNone; fPieces.Clear(); }
public override void Clear() { base.Clear(); fFirstPart = string.Empty; fSurname = string.Empty; fLastPart = string.Empty; fLanguage = GDMLanguageID.Unknown; fNameType = GDMNameType.ntNone; fPieces.Clear(); if (fNotes != null) { fNotes.Clear(); } if (fSourceCitations != null) { fSourceCitations.Clear(); } }