Ejemplo n.º 1
0
        public override void Clear()
        {
            base.Clear();

            if (fAddress != null)
            {
                fAddress.Clear();
            }
            fAgency         = string.Empty;
            fCause          = string.Empty;
            fClassification = string.Empty;
            fDate.Clear();
            if (fPlace != null)
            {
                fPlace.Clear();
            }
            fReligiousAffilation = string.Empty;
            fRestriction         = GDMRestriction.rnNone;
            if (fNotes != null)
            {
                fNotes.Clear();
            }
            if (fSourceCitations != null)
            {
                fSourceCitations.Clear();
            }
            if (fMultimediaLinks != null)
            {
                fMultimediaLinks.Clear();
            }
        }
Ejemplo n.º 2
0
        public PersonEditDlgController(IPersonEditDlg view) : base(view)
        {
            for (GDMRestriction res = GDMRestriction.rnNone; res <= GDMRestriction.rnPrivacy; res++)
            {
                fView.RestrictionCombo.Add(LangMan.LS(GKData.Restrictions[(int)res]));
            }

            for (GDMSex sx = GDMSex.svUnknown; sx <= GDMSex.svLast; sx++)
            {
                string name  = GKUtils.SexStr(sx);
                IImage image = null;
                #if SEX_SYMBOLS
                switch (sx)
                {
                case GDMSex.svMale:
                    image = AppHost.GfxProvider.LoadResourceImage("sym_male.png", true);
                    break;

                case GDMSex.svFemale:
                    image = AppHost.GfxProvider.LoadResourceImage("sym_female.png", true);
                    break;
                }
                #endif
                fView.SexCombo.AddItem(name, sx, image);
            }
        }
Ejemplo n.º 3
0
        public override void Clear()
        {
            base.Clear();

            fEvents.Clear();
            fRestriction = GDMRestriction.rnNone;
        }
Ejemplo n.º 4
0
        public override void Clear()
        {
            base.Clear();

            if (fEvents != null)
            {
                fEvents.Clear();
            }
            fRestriction = GDMRestriction.rnNone;
        }
Ejemplo n.º 5
0
        public FamilyEditDlgController(IFamilyEditDlg view) : base(view)
        {
            for (GDMRestriction res = GDMRestriction.rnNone; res <= GDMRestriction.rnLast; res++)
            {
                fView.Restriction.Add(LangMan.LS(GKData.Restrictions[(int)res]));
            }

            for (int i = 0; i < GKData.MarriageStatus.Length; i++)
            {
                fView.MarriageStatus.Add(LangMan.LS(GKData.MarriageStatus[i].Name));
            }
        }
Ejemplo n.º 6
0
        public override void Clear()
        {
            base.Clear();

            fAddress.Clear();
            fAgency         = string.Empty;
            fCause          = string.Empty;
            fClassification = string.Empty;
            fDate.Clear();
            fPlace.Clear();
            fReligiousAffilation = string.Empty;
            fRestriction         = GDMRestriction.rnNone;
        }
Ejemplo n.º 7
0
        public override void Clear()
        {
            base.Clear();

            fAddress.Clear();
            fAgency         = string.Empty;
            fCause          = string.Empty;
            fClassification = string.Empty;
            fDate.Clear();
            fPlace.Clear();
            fReligiousAffilation = string.Empty;
            fRestriction         = GDMRestriction.rnNone;
            fNotes.Clear();
            fSourceCitations.Clear();
            fMultimediaLinks.Clear();
        }
Ejemplo n.º 8
0
        public override void Assign(GDMTag source)
        {
            GDMCustomEvent sourceObj = (source as GDMCustomEvent);

            if (sourceObj == null)
            {
                throw new ArgumentException(@"Argument is null or wrong type", "source");
            }

            base.Assign(sourceObj);

            fAddress.Assign(sourceObj.fAddress);
            fAgency         = sourceObj.fAgency;
            fCause          = sourceObj.fCause;
            fClassification = sourceObj.fClassification;
            fDate.Assign(sourceObj.fDate);
            fPlace.Assign(sourceObj.fPlace);
            fReligiousAffilation = sourceObj.fReligiousAffilation;
            fRestriction         = sourceObj.fRestriction;
        }
Ejemplo n.º 9
0
        public override void Assign(GDMTag source)
        {
            GDMRecordWithEvents sourceRec = source as GDMRecordWithEvents;

            if (sourceRec == null)
            {
                throw new ArgumentException(@"Argument is null or wrong type", "source");
            }

            base.Assign(source);

            foreach (GDMCustomEvent sourceEvent in sourceRec.fEvents)
            {
                GDMCustomEvent copy = (GDMCustomEvent)Activator.CreateInstance(sourceEvent.GetType(), new object[] { this });
                copy.Assign(sourceEvent);
                AddEvent(copy);
            }

            fRestriction = sourceRec.Restriction;
        }
Ejemplo n.º 10
0
        public override void Assign(GDMTag source)
        {
            GDMRecordWithEvents sourceRec = source as GDMRecordWithEvents;

            if (sourceRec == null)
            {
                throw new ArgumentException(@"Argument is null or wrong type", "source");
            }

            base.Assign(source);

            for (int i = 0, count = sourceRec.fEvents.Count; i < count; i++)
            {
                GDMCustomEvent sourceEvent = sourceRec.fEvents[i];
                GDMCustomEvent copy        = (GDMCustomEvent)Activator.CreateInstance(sourceEvent.GetType());
                copy.Assign(sourceEvent);
                AddEvent(copy);
            }

            fRestriction = sourceRec.Restriction;
        }
Ejemplo n.º 11
0
        public override void Assign(GDMTag source)
        {
            GDMCustomEvent sourceObj = (source as GDMCustomEvent);

            if (sourceObj == null)
            {
                throw new ArgumentException(@"Argument is null or wrong type", "source");
            }

            base.Assign(sourceObj);

            if (sourceObj.fAddress != null)
            {
                Address.Assign(sourceObj.fAddress);
            }
            fAgency         = sourceObj.fAgency;
            fCause          = sourceObj.fCause;
            fClassification = sourceObj.fClassification;
            fDate.Assign(sourceObj.fDate);
            if (sourceObj.fPlace != null)
            {
                Place.Assign(sourceObj.fPlace);
            }
            fReligiousAffilation = sourceObj.fReligiousAffilation;
            fRestriction         = sourceObj.fRestriction;
            if (sourceObj.fNotes != null)
            {
                AssignList(sourceObj.fNotes, Notes);
            }
            if (sourceObj.fSourceCitations != null)
            {
                AssignList(sourceObj.fSourceCitations, SourceCitations);
            }
            if (sourceObj.fMultimediaLinks != null)
            {
                AssignList(sourceObj.fMultimediaLinks, MultimediaLinks);
            }
        }