Beispiel #1
0
        public static ListColumns CreateCommunicationListColumns()
        {
            var result = new ListColumns();

            // not to change the order of these lines in their changes
            result.AddColumn(LSID.LSID_Theme, DataType.dtString, 300, true, true);
            result.AddColumn(LSID.LSID_Corresponder, DataType.dtString, 200, true);
            result.AddColumn(LSID.LSID_Type, DataType.dtString, 90, true);
            result.AddColumn(LSID.LSID_Date, DataType.dtString, 90, true);
            result.AddColumn(LSID.LSID_Changed, DataType.dtDateTime, 150, true);

            result.ResetDefaults();
            return(result);
        }
Beispiel #2
0
        public static ListColumns CreateLocationListColumns()
        {
            var result = new ListColumns();

            NumberFormatInfo nfi = new NumberFormatInfo();

            nfi.NumberDecimalSeparator = ".";

            result.AddColumn(LSID.LSID_Title, DataType.dtString, 300, true, true);
            result.AddColumn(LSID.LSID_Latitude, DataType.dtFloat, 120, true, false, "0.000000", nfi);
            result.AddColumn(LSID.LSID_Longitude, DataType.dtFloat, 120, true, false, "0.000000", nfi);
            result.AddColumn(LSID.LSID_Changed, DataType.dtDateTime, 150, true);

            result.ResetDefaults();
            return(result);
        }
Beispiel #3
0
        public static ListColumns CreateResearchListColumns()
        {
            var result = new ListColumns();

            result.AddColumn(LSID.LSID_Title, DataType.dtString, 300, true, true);
            result.AddColumn(LSID.LSID_Priority, DataType.dtString, 90, true);
            result.AddColumn(LSID.LSID_Status, DataType.dtString, 90, true);
            result.AddColumn(LSID.LSID_StartDate, DataType.dtString, 90, true);
            result.AddColumn(LSID.LSID_StopDate, DataType.dtString, 90, true);
            result.AddColumn(LSID.LSID_Percent, DataType.dtInteger, 90, true);
            result.AddColumn(LSID.LSID_Changed, DataType.dtDateTime, 150, true);

            result.ResetDefaults();
            return(result);
        }
Beispiel #4
0
        public static ListColumns CreateIndividualListColumns()
        {
            var result = new ListColumns();

            result.AddColumn(LSID.LSID_Patriarch, DataType.dtString, 25, true);
            result.AddColumn(LSID.LSID_FullName, DataType.dtString, 300, true);
            result.AddColumn(LSID.LSID_Nickname, DataType.dtString, 75, false);
            result.AddColumn(LSID.LSID_Sex, DataType.dtString, 45, true);
            result.AddColumn(LSID.LSID_BirthDate, DataType.dtGEDCOMDate, 100, true);
            result.AddColumn(LSID.LSID_DeathDate, DataType.dtGEDCOMDate, 100, true);
            result.AddColumn(LSID.LSID_BirthPlace, DataType.dtString, 100, true);
            result.AddColumn(LSID.LSID_DeathPlace, DataType.dtString, 100, true);
            result.AddColumn(LSID.LSID_Residence, DataType.dtString, 100, true);
            result.AddColumn(LSID.LSID_Age, DataType.dtInteger, 100, false);
            result.AddColumn(LSID.LSID_LifeExpectancy, DataType.dtInteger, 100, false);
            result.AddColumn(LSID.LSID_DaysForBirth, DataType.dtInteger, 100, false);
            result.AddColumn(LSID.LSID_RPGroups, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Religion, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Nationality, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Education, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Occupation, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Caste, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Mili, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_MiliInd, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_MiliDis, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_MiliRank, DataType.dtString, 200, false);
            result.AddColumn(LSID.LSID_Changed, DataType.dtDateTime, 150, true);
            result.AddColumn(LSID.LSID_Bookmark, DataType.dtString, 25, true);
            result.AddColumn(LSID.LSID_NobilityTitle, DataType.dtString, 200, false);

            result.ResetDefaults();
            return(result);
        }