Пример #1
0
 public UserAction(string actionName, LSID btnText, string imageName, EventHandler clickHandler)
 {
     Name    = actionName;
     BtnText = btnText;
     Image   = string.IsNullOrEmpty(imageName) ? null : UIHelper.LoadResourceImage(imageName);
     Click   = clickHandler;
 }
Пример #2
0
        public static string LS(LSID lsid)
        {
            int    idx = ((IConvertible)lsid).ToInt32(null);
            string res;

            return((fList.TryGetValue(idx, out res)) ? res : "?");
        }
 private void AddCompositeItem(LSID name, CompositeItem item)
 {
     fView.Summary.AddItem(null, LangMan.LS(name),
                           string.Format("{0:0.00}", item.CommonVal),
                           string.Format("{0:0.00}", item.MaleVal),
                           string.Format("{0:0.00}", item.FemaleVal));
 }
Пример #4
0
        public void ConstructorEmptyGUIDError()
        {
            LSID   lsid;
            String GUID;

            GUID = String.Empty;
            lsid = new LSID(GUID);
        }
Пример #5
0
        public void ConstructorWrongUrnError()
        {
            LSID   lsid;
            String GUID;

            GUID = "URN2:LSID:artportalen.se:area:DataSet1Feature2:5:42";
            lsid = new LSID(GUID);
        }
Пример #6
0
        public void ConstructorWrongLsidNameSpaceError()
        {
            LSID   lsid;
            String GUID;

            GUID = "URN:LSID2:artportalen.se:area:DataSet1Feature2:5:42";
            lsid = new LSID(GUID);
        }
Пример #7
0
        public void ConstructorToFewPartsError()
        {
            LSID   lsid;
            String GUID;

            GUID = "URN:LSID:artportalen.se:area";
            lsid = new LSID(GUID);
        }
Пример #8
0
        private void AddCompositeItem(LSID name, CompositeItem item)
        {
            ListViewItem lvItem = lvSummary.Items.Add(LangMan.LS(name));

            lvItem.SubItems.Add(string.Format("{0:0.00}", item.CommonVal));
            lvItem.SubItems.Add(string.Format("{0:0.00}", item.MaleVal));
            lvItem.SubItems.Add(string.Format("{0:0.00}", item.FemaleVal));
        }
Пример #9
0
        public static string GetLSuom(LSID lsid, MeasurementType measurementType)
        {
            string result = Localizer.LS(lsid);

            MeasurementUnit mUnit = MeasurementUnit.Unknown;

            switch (measurementType)
            {
            case MeasurementType.Volume:
                mUnit = ALSettings.Instance.VolumeUoM;
                break;

            case MeasurementType.Length:
                mUnit = ALSettings.Instance.LengthUoM;
                break;

            case MeasurementType.Mass:
                mUnit = ALSettings.Instance.MassUoM;
                break;

            case MeasurementType.Temperature:
                mUnit = ALSettings.Instance.TemperatureUoM;
                break;

            case MeasurementType.Density:
                mUnit = MeasurementUnit.KilogramPerLitre;
                break;

            case MeasurementType.Flow:
                mUnit = MeasurementUnit.LitrePerHour;
                break;

            case MeasurementType.LightTemperature:
                mUnit = MeasurementUnit.DegreeKelvin;     // FIXME
                break;

            case MeasurementType.LuminousFlux:
                mUnit = MeasurementUnit.Lumen;
                break;

            case MeasurementType.PhotosyntheticallyActiveRadiation:
                mUnit = MeasurementUnit.WattPerSquareMeter;
                break;
            }

            if (mUnit != MeasurementUnit.Unknown)
            {
                var props = ALData.MeasurementUnits[(int)mUnit];
                var uom   = props.StrAbbreviation;

                if (!string.IsNullOrEmpty(uom))
                {
                    result += ", " + uom;
                }
            }

            return(result);
        }
Пример #10
0
 private static void DefInit(string[] source)
 {
     fList.Clear();
     for (LSID id = LSID.First; id <= LSID.Last; id++)
     {
         int idx = (int)id;
         fList.Add(idx, source[idx - 1]);
     }
 }
Пример #11
0
        public void AddColumn(LSID colName, DataType dataType,
                              int defWidth, bool defActive, bool autosize,
                              string format, NumberFormatInfo nfi)
        {
            fLastId += 1;
            ListColumn cs = new ListColumn((byte)fLastId, colName, dataType,
                                           defWidth, defActive, autosize, format, nfi);

            fColumns.Add(cs);
        }
Пример #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Added;
         hashCode = (hashCode * 397) ^ Deleted;
         hashCode = (hashCode * 397) ^ (LSID != null ? LSID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreationTime != null ? CreationTime.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #13
0
 public ListColumn(byte id, LSID colName, DataType dataType,
                   int defWidth, bool defActive, bool autosize = false,
                   string format = null, NumberFormatInfo numFmt = null)
 {
     Id        = id;
     ColName   = colName;
     DataType  = dataType;
     DefWidth  = defWidth;
     DefActive = defActive;
     Format    = format;
     NumFmt    = numFmt;
     Autosize  = autosize;
 }
Пример #14
0
        public void ObjectID()
        {
            LSID   lsid;
            String authority, GUID, nameSpace, objectID;

            GUID = "URN:LSID:artportalen.se:area:DataSet1Feature2";
            lsid = new LSID(GUID);
            Assert.AreEqual(lsid.ObjectID, "DataSet1Feature2");

            authority = "artportalen.se";
            nameSpace = "area";
            objectID  = "DataSet1Feature2";
            lsid      = new LSID(authority, nameSpace, objectID);
            Assert.AreEqual(lsid.ObjectID, objectID);
        }
Пример #15
0
        public void Constructor()
        {
            LSID   lsid;
            String authority, GUID, nameSpace, objectID, version;

            GUID = "URN:LSID:artportalen.se:area:DataSet1Feature2";
            lsid = new LSID(GUID);
            Assert.IsNotNull(lsid);
            Assert.AreEqual(lsid.GUID, GUID);
            Assert.AreEqual(lsid.Authority, "artportalen.se");
            Assert.AreEqual(lsid.NameSpace, "area");
            Assert.AreEqual(lsid.ObjectID, "DataSet1Feature2");
            Assert.IsTrue(lsid.Version.IsEmpty());

            GUID = "URN:LSID:artportalen.se:area:DataSet1Feature2:5";
            lsid = new LSID(GUID);
            Assert.IsNotNull(lsid);
            Assert.AreEqual(lsid.GUID, GUID);
            Assert.AreEqual(lsid.Authority, "artportalen.se");
            Assert.AreEqual(lsid.NameSpace, "area");
            Assert.AreEqual(lsid.ObjectID, "DataSet1Feature2");
            Assert.AreEqual(lsid.Version, "5");

            GUID      = "URN:LSID:artportalen.se:area:DataSet1Feature2";
            authority = "artportalen.se";
            nameSpace = "area";
            objectID  = "DataSet1Feature2";
            lsid      = new LSID(authority, nameSpace, objectID);
            Assert.IsNotNull(lsid);
            Assert.AreEqual(lsid.GUID, GUID);
            Assert.AreEqual(lsid.Authority, authority);
            Assert.AreEqual(lsid.NameSpace, nameSpace);
            Assert.AreEqual(lsid.ObjectID, objectID);
            Assert.IsTrue(lsid.Version.IsEmpty());

            GUID      = "URN:LSID:artportalen.se:area:DataSet1Feature2:5";
            authority = "artportalen.se";
            nameSpace = "area";
            objectID  = "DataSet1Feature2";
            version   = "5";
            lsid      = new LSID(authority, nameSpace, objectID, version);
            Assert.IsNotNull(lsid);
            Assert.AreEqual(lsid.GUID, GUID);
            Assert.AreEqual(lsid.Authority, authority);
            Assert.AreEqual(lsid.NameSpace, nameSpace);
            Assert.AreEqual(lsid.ObjectID, objectID);
            Assert.AreEqual(lsid.Version, version);
        }
Пример #16
0
        public void ConstructorNoObjectIDError()
        {
            LSID   lsid;
            String authority, GUID, nameSpace, objectID;

            GUID      = "URN:LSID:artportalen.se:area:DataSet1Feature2";
            authority = "artportalen.se:area";
            nameSpace = "area";
            objectID  = string.Empty;
            lsid      = new LSID(authority, nameSpace, objectID);
            Assert.IsNotNull(lsid);
            Assert.AreEqual(lsid.GUID, GUID);
            Assert.AreEqual(lsid.Authority, authority);
            Assert.AreEqual(lsid.NameSpace, nameSpace);
            Assert.AreEqual(lsid.ObjectID, objectID);
            Assert.IsTrue(lsid.Version.IsEmpty());
        }
        /// <summary>
        /// Method that generates the url to MarBEF (ERMS) taxon information.
        /// </summary>
        /// <param name="GUID">GUID</param>
        /// <returns>A string representing an Url.</returns>
        public string GetUrlToWormsTaxonInformation(string GUID)
        {
            string url = "";

            if (GUID != "")
            {
                try
                {
                    LSID lsid = new LSID(GUID);
                    if (lsid.Authority == "marinespecies.org")
                    {
                        url = Resources.DyntaxaSettings.Default.UrlToWormsTaxonInformation.Replace("[Id]", lsid.ObjectID);
                    }
                }
                catch (Exception) { }
            }
            return(url);
        }
Пример #18
0
        public void Version()
        {
            LSID   lsid;
            String authority, GUID, nameSpace, objectID, version;

            GUID = "URN:LSID:artportalen.se:area:DataSet1Feature2:2";
            lsid = new LSID(GUID);
            Assert.AreEqual(lsid.Version, "2");

            GUID = "URN:LSID:artportalen.se:area:DataSet1Feature2";
            lsid = new LSID(GUID);
            Assert.IsTrue(lsid.Version.IsEmpty());

            authority = "artportalen.se";
            nameSpace = "area";
            objectID  = "DataSet1Feature2";
            version   = "2";
            lsid      = new LSID(authority, nameSpace, objectID, version);
            Assert.AreEqual(lsid.Version, version);
        }
        /// <summary>
        /// Get taxa avaliable in a list of GUIDS.
        /// </summary>
        /// <param name="context">Web service request context.</param>
        /// <param name="taxonGuids"></param>
        /// <returns>All taxa with GUIDs avaliable in the list of GUIDs.</returns>
        public virtual List <WebTaxon> GetTaxaByGUIDs(WebServiceContext context,
                                                      List <String> taxonGuids)
        {
            WebClientInformation clientInformation = GetClientInformation(context, WebServiceId.TaxonService);
            List <WebTaxon>      taxa     = null;
            List <Int32>         taxonIds = new List <Int32>();

            foreach (String taxonGuid in taxonGuids)
            {
                LSID lsid = new LSID(taxonGuid);

                int taxonId = Convert.ToInt32(lsid.ObjectID);
                taxonIds.Add(taxonId);
            }
            if (taxonIds.IsNotEmpty())
            {
                taxa = WebServiceProxy.TaxonService.GetTaxaByIds(clientInformation, taxonIds);
            }

            return(taxa);
        }
Пример #20
0
 public StoreTypeRec(LSID name, string sign)
 {
     Name = name;
     Sign = sign;
 }
Пример #21
0
 public void AddAction(string actionName, LSID btnText, string imageName, EventHandler clickHandler)
 {
     fActions.Add(new UserAction(actionName, btnText, imageName, clickHandler));
 }
Пример #22
0
 public void AddColumn(LSID colName, DataType dataType,
                       int defWidth, bool defActive,
                       bool autosize = false)
 {
     AddColumn(colName, dataType, defWidth, defActive, autosize, null, null);
 }
Пример #23
0
 public SpecialUserRef(LSID title, string resName)
 {
     Title   = title;
     ResName = resName;
 }
Пример #24
0
 public void AddColumn(LSID colName, int defWidth, bool autosize = false)
 {
     AddColumn(colName, DataType.dtString, defWidth, true, autosize, null, null);
 }
Пример #25
0
 public EventStruct(LSID name, string sign, PersonEventKind kind)
 {
     Name = name;
     Sign = sign;
     Kind = kind;
 }
Пример #26
0
 public MarStatusStruct(LSID name, string sign)
 {
     Name     = name;
     StatSign = sign;
 }
Пример #27
0
 public SexStruct(LSID name, string sign)
 {
     NameId = name;
     Sign   = sign;
 }
Пример #28
0
        public const int MAX_BRT_SST_DIFF = 40; // max. age difference between brothers/sisters


        static GKData()
        {
            GreatPrefix = LSID.LSID_RK_GreatPrefix;

            // TODO: need to find a way of localization
            NumKinship = new string[]
            {
                "-",
                "юродный",
                "юродная",
                ""
            };

            // TODO: need to find a way of localization
            Numerals = new string[]
            {
                "-",
                "дво",
                "тро",
                "четверо",
                "пяти",
                "шести",
                "семи",
                "восьми",
                "девяти"
            };

            RelationSigns = new string[]
            {
                "?",
                "P",
                "S",
                "C",
                "F",
                "M",
                "H",
                "W",
                "Sn",
                "Dg",
                "Gf",
                "Gm",
                "Gs",
                "Gd",
                "Br",
                "St",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-",
                "-"
            };

            RelationKinds = new LSID[]
            {
                LSID.LSID_RK_Unk,
                LSID.LSID_None,
                LSID.LSID_None,
                LSID.LSID_None,
                LSID.LSID_RK_Father,
                LSID.LSID_RK_Mother,
                LSID.LSID_RK_Husband,
                LSID.LSID_RK_Wife,
                LSID.LSID_RK_Son,
                LSID.LSID_RK_Daughter,
                LSID.LSID_RK_Grandfather,
                LSID.LSID_RK_Grandmother,
                LSID.LSID_RK_Grandson,
                LSID.LSID_RK_Granddaughter,
                LSID.LSID_RK_Brother,
                LSID.LSID_RK_Sister,
                LSID.LSID_RK_SonInLaw,
                LSID.LSID_RK_DaughterInLaw,
                LSID.LSID_RK_HusbandFather,
                LSID.LSID_RK_HusbandMother,
                LSID.LSID_RK_WifeFather,
                LSID.LSID_RK_WifeMother,
                LSID.LSID_RK_Uncle,
                LSID.LSID_RK_Aunt,
                LSID.LSID_RK_Nephew,
                LSID.LSID_RK_Niece,
                LSID.LSID_RK_CousinM,
                LSID.LSID_RK_CousinF,
                LSID.LSID_RK_BrotherInLaw_H,
                LSID.LSID_RK_SisterInLaw_H,
                LSID.LSID_RK_BrotherInLaw_W,
                LSID.LSID_RK_SisterInLaw_W,
                LSID.LSID_None,
                LSID.LSID_RK_Unk
            };


            SpecialUserRefs = new SpecialUserRef[]
            {
                new SpecialUserRef(LSID.LSID_RI_GeorgeKnight, ""),
                new SpecialUserRef(LSID.LSID_USSR_WWII_Combatant, ""),
                new SpecialUserRef(LSID.LSID_USSR_WWII_KilledInBattle, ""),
                new SpecialUserRef(LSID.LSID_USSR_WWII_WorkerInRear, ""),
                new SpecialUserRef(LSID.LSID_USSR_Repressed, ""),
                new SpecialUserRef(LSID.LSID_Religion_Islam, ""),
                new SpecialUserRef(LSID.LSID_Religion_Catholicism, ""),
                new SpecialUserRef(LSID.LSID_Religion_Orthodoxy, ""),
                new SpecialUserRef(LSID.LSID_Religion_TheOldBelievers, "")
            };


            CertaintyAssessments = new LSID[]
            {
                LSID.LSID_Cert_1,
                LSID.LSID_Cert_2,
                LSID.LSID_Cert_3,
                LSID.LSID_Cert_4
            };


            GoalNames = new LSID[]
            {
                LSID.LSID_G_1,
                LSID.LSID_G_2,
                LSID.LSID_G_3,
                LSID.LSID_G_4
            };


            CommunicationDirs = new LSID[]
            {
                LSID.LSID_CD_1,
                LSID.LSID_CD_2
            };


            CommunicationNames = new LSID[]
            {
                LSID.LSID_Com_1,
                LSID.LSID_Com_2,
                LSID.LSID_Com_3,
                LSID.LSID_Com_4,
                LSID.LSID_Com_5,
                LSID.LSID_Com_6
            };


            StatusNames = new LSID[]
            {
                LSID.LSID_RStat_1,
                LSID.LSID_RStat_2,
                LSID.LSID_RStat_3,
                LSID.LSID_RStat_4,
                LSID.LSID_RStat_5,
                LSID.LSID_RStat_6
            };


            PriorityNames = new LSID[]
            {
                LSID.LSID_Prt_1,
                LSID.LSID_Prt_2,
                LSID.LSID_Prt_3,
                LSID.LSID_Prt_4,
                LSID.LSID_Prt_5
            };


            MediaTypes = new LSID[]
            {
                LSID.LSID_DefaultValue, // TODO: may be LSID.LSID_MT_15 (Unknown)?
                LSID.LSID_MT_02,
                LSID.LSID_MT_03,
                LSID.LSID_MT_04,
                LSID.LSID_MT_05,
                LSID.LSID_MT_06,
                LSID.LSID_MT_07,
                LSID.LSID_MT_08,
                LSID.LSID_MT_09,
                LSID.LSID_MT_10,
                LSID.LSID_MT_11,
                LSID.LSID_MT_12,
                LSID.LSID_MT_13,
                LSID.LSID_MT_14
                //LSID.LSID_MT_15 <Unknown removed to first position>
            };


            GKStoreTypes = new StoreTypeRec[]
            {
                new StoreTypeRec(LSID.LSID_STRef, ""),
                new StoreTypeRec(LSID.LSID_STStg, "stg:"),
                new StoreTypeRec(LSID.LSID_STArc, "arc:"),
                new StoreTypeRec(LSID.LSID_STRel, "rel:")
            };


            FamilyEvents = new EventStruct[] {
                new EventStruct(LSID.LSID_Event, GEDCOMTagName.EVEN, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_1, GEDCOMTagName.ENGA, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_2, GEDCOMTagName.MARR, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_3, GEDCOMTagName.MARB, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_4, GEDCOMTagName.MARC, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_5, GEDCOMTagName.MARL, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_6, GEDCOMTagName.MARS, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_7, GEDCOMTagName.ANUL, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_8, GEDCOMTagName.DIVF, PersonEventKind.ekEvent),
                new EventStruct(LSID.LSID_FEvt_9, GEDCOMTagName.DIV, PersonEventKind.ekEvent),
            };


            // FIXME: use calendars for StrToGEDCOMDate() and class EventEditDlg
            DateCalendars = new CalendarStruct[]
            {
                new CalendarStruct(LSID.LSID_Cal_Gregorian, " [G]", true),
                new CalendarStruct(LSID.LSID_Cal_Julian, " [J]", true),
                new CalendarStruct(LSID.LSID_Cal_Hebrew, " [H]", false), // !
                new CalendarStruct(LSID.LSID_Cal_French, " [FR]", false),
                new CalendarStruct(LSID.LSID_Cal_Roman, " [R]", false),
                new CalendarStruct(LSID.LSID_Cal_Islamic, " [I]", false), // !
                new CalendarStruct(LSID.LSID_Unknown, "", false)
            };


            DateKindStruct[] array5 = new DateKindStruct[10];
            array5[0] = new DateKindStruct(LSID.LSID_DK_0, 1); // 1
            array5[1] = new DateKindStruct(LSID.LSID_DK_1, 2); // 2
            array5[2] = new DateKindStruct(LSID.LSID_DK_2, 1); // 1
            array5[3] = new DateKindStruct(LSID.LSID_DK_3, 3); // 1,2
            array5[4] = new DateKindStruct(LSID.LSID_DK_4, 1); // 1
            array5[5] = new DateKindStruct(LSID.LSID_DK_5, 2); // 2
            array5[6] = new DateKindStruct(LSID.LSID_DK_6, 3); // 1,2
            array5[7] = new DateKindStruct(LSID.LSID_DK_7, 1); // 1
            array5[8] = new DateKindStruct(LSID.LSID_DK_8, 1); // 1
            array5[9] = new DateKindStruct(LSID.LSID_DK_9, 1); // 1
            DateKinds = array5;


            EventStruct[] array6 = new EventStruct[41];
            array6[0]  = new EventStruct(LSID.LSID_Event, GEDCOMTagName.EVEN, PersonEventKind.ekEvent);
            array6[1]  = new EventStruct(LSID.LSID_Birth, GEDCOMTagName.BIRT, PersonEventKind.ekEvent);
            array6[2]  = new EventStruct(LSID.LSID_Adoption, GEDCOMTagName.ADOP, PersonEventKind.ekEvent);
            array6[3]  = new EventStruct(LSID.LSID_Christening, GEDCOMTagName.CHR, PersonEventKind.ekEvent);
            array6[4]  = new EventStruct(LSID.LSID_Graduation, GEDCOMTagName.GRAD, PersonEventKind.ekEvent);
            array6[5]  = new EventStruct(LSID.LSID_Retirement, GEDCOMTagName.RETI, PersonEventKind.ekEvent);
            array6[6]  = new EventStruct(LSID.LSID_Naturalization, GEDCOMTagName.NATU, PersonEventKind.ekEvent);
            array6[7]  = new EventStruct(LSID.LSID_Emigration, GEDCOMTagName.EMIG, PersonEventKind.ekEvent);
            array6[8]  = new EventStruct(LSID.LSID_Immigration, GEDCOMTagName.IMMI, PersonEventKind.ekEvent);
            array6[9]  = new EventStruct(LSID.LSID_Census, GEDCOMTagName.CENS, PersonEventKind.ekEvent);
            array6[10] = new EventStruct(LSID.LSID_LastWill, GEDCOMTagName.WILL, PersonEventKind.ekEvent);
            array6[11] = new EventStruct(LSID.LSID_ProbateOfWill, GEDCOMTagName.PROB, PersonEventKind.ekEvent);
            array6[12] = new EventStruct(LSID.LSID_Death, GEDCOMTagName.DEAT, PersonEventKind.ekEvent);
            array6[13] = new EventStruct(LSID.LSID_Burial, GEDCOMTagName.BURI, PersonEventKind.ekEvent);
            array6[14] = new EventStruct(LSID.LSID_Cremation, GEDCOMTagName.CREM, PersonEventKind.ekEvent);

            array6[15] = new EventStruct(LSID.LSID_Fact, GEDCOMTagName.FACT, PersonEventKind.ekFact);
            array6[16] = new EventStruct(LSID.LSID_Religion, GEDCOMTagName.RELI, PersonEventKind.ekFact);
            array6[17] = new EventStruct(LSID.LSID_Nationality, GEDCOMTagName.NATI, PersonEventKind.ekFact);
            array6[18] = new EventStruct(LSID.LSID_Residence, GEDCOMTagName.RESI, PersonEventKind.ekFact);
            array6[19] = new EventStruct(LSID.LSID_PhysicalDesc, GEDCOMTagName.DSCR, PersonEventKind.ekFact);
            array6[20] = new EventStruct(LSID.LSID_NationalIDNumber, GEDCOMTagName.IDNO, PersonEventKind.ekFact);
            array6[21] = new EventStruct(LSID.LSID_SocialSecurityNumber, GEDCOMTagName.SSN, PersonEventKind.ekFact);
            array6[22] = new EventStruct(LSID.LSID_ChildsCount, GEDCOMTagName.NCHI, PersonEventKind.ekFact);
            array6[23] = new EventStruct(LSID.LSID_MarriagesCount, GEDCOMTagName.NMR, PersonEventKind.ekFact);
            array6[24] = new EventStruct(LSID.LSID_Education, GEDCOMTagName.EDUC, PersonEventKind.ekFact);
            array6[25] = new EventStruct(LSID.LSID_Occupation, GEDCOMTagName.OCCU, PersonEventKind.ekFact);
            array6[26] = new EventStruct(LSID.LSID_Caste, GEDCOMTagName.CAST, PersonEventKind.ekFact);
            array6[27] = new EventStruct(LSID.LSID_Property, GEDCOMTagName.PROP, PersonEventKind.ekFact);
            array6[28] = new EventStruct(LSID.LSID_NobilityTitle, GEDCOMTagName.TITL, PersonEventKind.ekFact);

            array6[29] = new EventStruct(LSID.LSID_Travel, GEDCOMTagName._TRAVEL, PersonEventKind.ekFact);
            array6[30] = new EventStruct(LSID.LSID_Hobby, GEDCOMTagName._HOBBY, PersonEventKind.ekFact);
            array6[31] = new EventStruct(LSID.LSID_Award, GEDCOMTagName._AWARD, PersonEventKind.ekFact);
            array6[32] = new EventStruct(LSID.LSID_Mili, GEDCOMTagName._MILI, PersonEventKind.ekFact);
            array6[33] = new EventStruct(LSID.LSID_MiliInd, GEDCOMTagName._MILI_IND, PersonEventKind.ekFact);
            array6[34] = new EventStruct(LSID.LSID_MiliDis, GEDCOMTagName._MILI_DIS, PersonEventKind.ekFact);
            array6[35] = new EventStruct(LSID.LSID_MiliRank, GEDCOMTagName._MILI_RANK, PersonEventKind.ekFact);

            array6[36]   = new EventStruct(LSID.LSID_BloodGroup, GEDCOMTagName._BGRO, PersonEventKind.ekFact);
            array6[37]   = new EventStruct(LSID.LSID_HairColor, GEDCOMTagName._HAIR, PersonEventKind.ekFact);
            array6[38]   = new EventStruct(LSID.LSID_EyesColor, GEDCOMTagName._EYES, PersonEventKind.ekFact);
            array6[39]   = new EventStruct(LSID.LSID_MDNAHaplogroup, GEDCOMTagName._MDNA, PersonEventKind.ekFact);
            array6[40]   = new EventStruct(LSID.LSID_YDNAHaplogroup, GEDCOMTagName._YDNA, PersonEventKind.ekFact);
            PersonEvents = array6;


            MarriageStatus = new MarStatusStruct[]
            {
                new MarStatusStruct(LSID.LSID_Unknown, ""),
                new MarStatusStruct(LSID.LSID_MarrRegistered, "MARRIED"),
                new MarStatusStruct(LSID.LSID_MarrNotRegistered, "MARRNOTREG"),
                new MarStatusStruct(LSID.LSID_MarrDivorced, "NOTMARR")
            };


            SexData = new SexStruct[]
            {
                new SexStruct(LSID.LSID_SexU, "U"),
                new SexStruct(LSID.LSID_SexM, "M"),
                new SexStruct(LSID.LSID_SexF, "F"),
                new SexStruct(LSID.LSID_SexX, "X")
            };


            RecordTypes = new LSID[]
            {
                LSID.LSID_None,
                LSID.LSID_Person,
                LSID.LSID_Family,
                LSID.LSID_Note,
                LSID.LSID_RPMultimedia,
                LSID.LSID_Source,
                LSID.LSID_Repository,
                LSID.LSID_Group,
                LSID.LSID_Research,
                LSID.LSID_Task,
                LSID.LSID_Communication,
                LSID.LSID_Location,
                LSID.LSID_Submission,
                LSID.LSID_Submitter
            };


            Restrictions = new LSID[]
            {
                LSID.LSID_RestrictNone,
                LSID.LSID_RestrictLocked,
                LSID.LSID_RestrictConfidential,
                LSID.LSID_RestrictPrivacy
            };


            StatsTitles     = new StatsTitleStruct[37];
            StatsTitles[0]  = new StatsTitleStruct(LSID.LSID_AncestorsCount, LSID.LSID_Name);
            StatsTitles[1]  = new StatsTitleStruct(LSID.LSID_DescendantsCount, LSID.LSID_Name);
            StatsTitles[2]  = new StatsTitleStruct(LSID.LSID_GenerationsCount, LSID.LSID_Name);
            StatsTitles[3]  = new StatsTitleStruct(LSID.LSID_Surname, LSID.LSID_Surname);
            StatsTitles[4]  = new StatsTitleStruct(LSID.LSID_Name, LSID.LSID_Name);
            StatsTitles[5]  = new StatsTitleStruct(LSID.LSID_Patronymic, LSID.LSID_Patronymic);
            StatsTitles[6]  = new StatsTitleStruct(LSID.LSID_Age, LSID.LSID_Age);
            StatsTitles[7]  = new StatsTitleStruct(LSID.LSID_LifeExpectancy, LSID.LSID_Age);
            StatsTitles[8]  = new StatsTitleStruct(LSID.LSID_BirthYears, LSID.LSID_BirthYears);
            StatsTitles[9]  = new StatsTitleStruct(LSID.LSID_BirthYearsDec, LSID.LSID_BirthYears);
            StatsTitles[10] = new StatsTitleStruct(LSID.LSID_DeathYears, LSID.LSID_DeathYears);
            StatsTitles[11] = new StatsTitleStruct(LSID.LSID_DeathYearsDec, LSID.LSID_DeathYears);
            StatsTitles[12] = new StatsTitleStruct(LSID.LSID_ChildsCount, LSID.LSID_Name);
            StatsTitles[13] = new StatsTitleStruct(LSID.LSID_DistrChilds, LSID.LSID_ChildsCount);
            StatsTitles[14] = new StatsTitleStruct(LSID.LSID_BirthPlace, LSID.LSID_BirthPlace);
            StatsTitles[15] = new StatsTitleStruct(LSID.LSID_DeathPlace, LSID.LSID_DeathPlace);
            StatsTitles[16] = new StatsTitleStruct(LSID.LSID_Residence, LSID.LSID_Residence);
            StatsTitles[17] = new StatsTitleStruct(LSID.LSID_Occupation, LSID.LSID_Occupation);
            StatsTitles[18] = new StatsTitleStruct(LSID.LSID_Religion, LSID.LSID_Religion);
            StatsTitles[19] = new StatsTitleStruct(LSID.LSID_Nationality, LSID.LSID_Nationality);
            StatsTitles[20] = new StatsTitleStruct(LSID.LSID_Education, LSID.LSID_Education);
            StatsTitles[21] = new StatsTitleStruct(LSID.LSID_Caste, LSID.LSID_Caste);
            StatsTitles[22] = new StatsTitleStruct(LSID.LSID_AgeFirstborn, LSID.LSID_Name);
            StatsTitles[23] = new StatsTitleStruct(LSID.LSID_MarriagesCount, LSID.LSID_Name);
            StatsTitles[24] = new StatsTitleStruct(LSID.LSID_MarriagesAge, LSID.LSID_Name);
            StatsTitles[25] = new StatsTitleStruct(LSID.LSID_DiffSpouses, LSID.LSID_Family);
            StatsTitles[26] = new StatsTitleStruct(LSID.LSID_Hobby, LSID.LSID_Hobby);
            StatsTitles[27] = new StatsTitleStruct(LSID.LSID_Award, LSID.LSID_Award);
            StatsTitles[28] = new StatsTitleStruct(LSID.LSID_Mili, LSID.LSID_Mili);
            StatsTitles[29] = new StatsTitleStruct(LSID.LSID_MiliInd, LSID.LSID_MiliInd);
            StatsTitles[30] = new StatsTitleStruct(LSID.LSID_MiliDis, LSID.LSID_MiliDis);
            StatsTitles[31] = new StatsTitleStruct(LSID.LSID_MiliRank, LSID.LSID_MiliRank);
            StatsTitles[32] = new StatsTitleStruct(LSID.LSID_AAF_1, LSID.LSID_AAF_1);
            StatsTitles[33] = new StatsTitleStruct(LSID.LSID_AAF_2, LSID.LSID_AAF_2);
            StatsTitles[34] = new StatsTitleStruct(LSID.LSID_CertaintyIndex, LSID.LSID_CertaintyIndex);
            StatsTitles[35] = new StatsTitleStruct(LSID.LSID_BirthByMonth, LSID.LSID_BirthByMonth);
            StatsTitles[36] = new StatsTitleStruct(LSID.LSID_Demography, LSID.LSID_Demography);

            CheckSolveNames = new LSID[]
            {
                LSID.LSID_RM_Skip,
                LSID.LSID_SetIsDead,
                LSID.LSID_DefineSex,
                LSID.LSID_DoDelete,
                LSID.LSID_DoEdit
            };

            CondSigns = new string[]
            {
                "!=", "<", "<=", "==", "=>", ">", "contains", "not contains"
            };

            NameTypes = new LSID[]
            {
                LSID.LSID_DefaultValue,
                LSID.LSID_NTAka,
                LSID.LSID_NTBirth,
                LSID.LSID_NTImmigrant,
                LSID.LSID_NTMaiden,
                LSID.LSID_NTMarried
            };

            ParentTypes = new LSID[] {
                LSID.LSID_DefaultValue,
                LSID.LSID_PLT_Adopted,
                LSID.LSID_PLT_Birth,
                LSID.LSID_PLT_Foster,
            };

            BloodGroups = "|(I) O+|(I) O-|(II) A+|(II) A-|(III) B+|(III) B-|(IV) AB+|(IV) AB-";
        }
Пример #29
0
 public SpeciesProps(LSID name, Color color)
 {
     Name  = name;
     Color = color;
 }
Пример #30
0
 public StatsTitleStruct(LSID title, LSID cap)
 {
     Title = title;
     Cap   = cap;
 }