示例#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);
        }
示例#2
0
文件: date.cs 项目: anytizer/gedcomer
 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     = "";
 }