Пример #1
0
 public OrdinaryOperation(UndoManager manager, OperationType type,
                          GEDCOMObject obj, object newVal) : base(manager)
 {
     fType   = type;
     fObj    = obj;
     fNewVal = newVal;
 }
Пример #2
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetName("DATA");

            fEvents = new GEDCOMList <GEDCOMEvent>(this);
        }
Пример #3
0
        public void GEDCOMUtils_Tests()
        {
            GEDCOMObject obj = new GEDCOMObject();

            obj.ExtData = this;
            Assert.AreEqual(obj.ExtData, this);
            obj.Dispose();

            //

            Assert.AreEqual("I12", GEDCOMUtils.CleanXRef("@I12@"), "CleanXRef(@I12@)");
            Assert.AreEqual("@I12@", GEDCOMUtils.EncloseXRef("I12"), "EncloseXRef(I12)");

            //
            string s1 = " 12345 efgh";
            string s2 = "";

            s2 = GEDCOMUtils.ExtractDelimiter(s1, 0);
            Assert.AreEqual("12345 efgh", s2);

            //

            string s3 = GEDCOMUtils.ExtractDelimiter("    abrvalg", 2);

            Assert.AreEqual("  abrvalg", s3);
        }
Пример #4
0
        protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
        {
            base.CreateObj(owner, parent);
            SetRecordType(GEDCOMRecordType.rtSubmitter);
            SetName("SUBM");

            fLanguages = new GEDCOMList <GEDCOMLanguage>(this);
        }
Пример #5
0
        public bool DoOrdinaryOperation(OperationType type, GEDCOMObject obj, object newVal)
        {
            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }

            if (newVal == null)
            {
                throw new ArgumentNullException("newVal");
            }

            return(DoOperation(new OrdinaryOperation(this, type, obj, newVal)));
        }
Пример #6
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMUserReference(owner, parent, tagName, tagValue));
 }
Пример #7
0
 public GEDCOMAssociation(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #8
0
 public GEDCOMLocationRecord(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #9
0
 public GEDCOMPlace(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #10
0
 protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
 {
     base.CreateObj(owner, parent);
     fDatePhrase = "";
 }
Пример #11
0
 public GEDCOMSpouseSealing(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #12
0
 public SearchResult(GEDCOMObject result)
 {
     Result = result;
 }
Пример #13
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMIndividualEvent(owner, parent, tagName, tagValue));
 }
Пример #14
0
 public GEDCOMIndividualEvent(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #15
0
 public GEDCOMRepositoryCitation(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #16
0
 public GEDCOMDateStatus(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
     : base(owner, parent, tagName, tagValue)
 {
 }
Пример #17
0
 public GEDCOMFamilyEvent(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #18
0
 protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
 {
     base.CreateObj(owner, parent);
     SetRecordType(GEDCOMRecordType.rtSubmission);
     SetName("SUBN");
 }
Пример #19
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMSpouseSealing(owner, parent, tagName, tagValue));
 }
Пример #20
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMCutoutPosition(owner, parent, tagName, tagValue));
 }
Пример #21
0
 public GEDCOMCutoutPosition(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #22
0
 public GEDCOMDateInterpreted(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #23
0
 public GEDCOMSubmitterRecord(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #24
0
 public GEDCOMChildToFamilyLink(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }
Пример #25
0
 protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
 {
     base.CreateObj(owner, parent);
     SetName("PLAC");
 }
Пример #26
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMChildToFamilyLink(owner, parent, tagName, tagValue));
 }
Пример #27
0
 protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
 {
     base.CreateObj(owner, parent);
     SetRecordType(GEDCOMRecordType.rtLocation);
     SetName("_LOC");
 }
Пример #28
0
 protected override void CreateObj(GEDCOMTree owner, GEDCOMObject parent)
 {
     base.CreateObj(owner, parent);
     SetName("ASSO");
     fSourceCitations = new GEDCOMList <GEDCOMSourceCitation>(this);
 }
Пример #29
0
 public new static GEDCOMTag Create(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue)
 {
     return(new GEDCOMLocationRecord(owner, parent, tagName, tagValue));
 }
Пример #30
0
 protected GEDCOMCustomEvent(GEDCOMTree owner, GEDCOMObject parent, string tagName, string tagValue) : base(owner, parent, tagName, tagValue)
 {
 }