示例#1
0
        public override string ParseString(string strValue)
        {
            try {
                if (fValue != null)
                {
                    fValue.Dispose();
                    fValue = null;
                }

                return(string.IsNullOrEmpty(strValue) ? string.Empty : GEDCOMUtils.ParseDateValue(null, this, strValue));
            } catch (Exception ex) {
                Logger.WriteError("GDMDateValue.ParseString(\"" + strValue + "\")", ex);
                return(strValue);
            }
        }
示例#2
0
        public override string ParseString(string strValue)
        {
            try {
                if (fValue != null)
                {
                    fValue.Dispose();
                    fValue = null;
                }

                return(string.IsNullOrEmpty(strValue) ? string.Empty : GEDCOMUtils.ParseDateValue(GetTree(), this, strValue));
            } catch (Exception ex) {
                Logger.LogWrite("GEDCOMDateValue.ParseString(\"" + strValue + "\"): " + ex.Message);
                return(strValue);
            }
        }