コード例 #1
0
ファイル: GDMPersonalName.cs プロジェクト: m-kosina/GEDKeeper
        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);
            }
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: GDMPersonalName.cs プロジェクト: subratb/GEDKeeper
        public override void Clear()
        {
            base.Clear();

            fFirstPart = string.Empty;
            fSurname   = string.Empty;
            fLastPart  = string.Empty;

            fLanguage = GDMLanguageID.Unknown;
            fNameType = GDMNameType.ntNone;

            fPieces.Clear();
        }
コード例 #4
0
ファイル: GDMPersonalName.cs プロジェクト: m-kosina/GEDKeeper
        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();
            }
        }