Ejemplo n.º 1
0
        protected override string GetStringValue()
        {
            string result;

            if (!fDateFrom.IsEmpty() && !fDateTo.IsEmpty())
            {
                result = string.Concat("FROM ", fDateFrom.StringValue, " TO ", fDateTo.StringValue);
            }
            else if (!fDateFrom.IsEmpty())
            {
                result = "FROM " + fDateFrom.StringValue;
            }
            else if (!fDateTo.IsEmpty())
            {
                result = "TO " + fDateTo.StringValue;
            }
            else
            {
                result = "";
            }
            return(result);
        }
Ejemplo n.º 2
0
        protected override string GetStringValue()
        {
            string result;

            if (!fDateAfter.IsEmpty() && !fDateBefore.IsEmpty())
            {
                result = string.Concat(GDMCustomDate.GEDCOMDateRangeArray[2], " ", fDateAfter.StringValue, " ", GDMCustomDate.GEDCOMDateRangeArray[3], " ", fDateBefore.StringValue);
            }
            else if (!fDateAfter.IsEmpty())
            {
                result = GDMCustomDate.GEDCOMDateRangeArray[0] + " " + fDateAfter.StringValue;
            }
            else if (!fDateBefore.IsEmpty())
            {
                result = GDMCustomDate.GEDCOMDateRangeArray[1] + " " + fDateBefore.StringValue;
            }
            else
            {
                result = "";
            }
            return(result);
        }