public override string ToString() { string strVal; if (fDate == null) { strVal = ""; } else { GlobalOptions glob = GlobalOptions.Instance; strVal = fDate.GetDisplayStringExt(glob.DefDateFormat, glob.ShowDatesSign, glob.ShowDatesCalendar); } return(strVal); }
protected static object GetDateValue(GEDCOMCustomDate date, bool isVisible) { object result; if (date == null) { result = (isVisible) ? null : (object)UDN.CreateEmpty(); } else { if (isVisible) { GlobalOptions glob = GlobalOptions.Instance; result = date.GetDisplayStringExt(glob.DefDateFormat, glob.ShowDatesSign, glob.ShowDatesCalendar); } else { result = date.GetUDN(); } } return(result); }