Exemplo n.º 1
0
        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);
        }