Example #1
0
        internal static string datetype(datetype datetype)
        {
            // Fully convert date type into type string
            string type = "";

            switch (datetype)
            {
            case classes.datetype.BIRT:
                type = "BIRT";
                break;

            case classes.datetype.DEAT:
                type = "DEAT";
                break;

            case classes.datetype.MARR:
                // apply only to family creation
                type = "MARR";
                break;

            default:
                type = "UNKW";
                break;
            }

            return(type);
        }
Example #2
0
 public date(datetype type, string date_value = "", string place = "", string text = "")
 {
     // @todo Manage source and text data
     this.type       = type;
     this.date_value = date_value;
     this.place      = "";
     this.source     = "";
 }