예제 #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);
        }
예제 #2
0
        protected override string GetStringValue()
        {
            string result;

            if (!fDateAfter.IsEmpty() && !fDateBefore.IsEmpty())
            {
                result = string.Concat(GEDCOMConsts.GEDCOMDateRangeArray[2], " ", fDateAfter.StringValue, " ", GEDCOMConsts.GEDCOMDateRangeArray[3], " ", fDateBefore.StringValue);
            }
            else if (!fDateAfter.IsEmpty())
            {
                result = GEDCOMConsts.GEDCOMDateRangeArray[0] + " " + fDateAfter.StringValue;
            }
            else if (!fDateBefore.IsEmpty())
            {
                result = GEDCOMConsts.GEDCOMDateRangeArray[1] + " " + fDateBefore.StringValue;
            }
            else
            {
                result = "";
            }
            return(result);
        }
예제 #3
0
 public override bool IsEmpty()
 {
     return(base.IsEmpty() && string.IsNullOrEmpty(fCommName) && fDate.IsEmpty() && fCorresponder.IsEmpty());
 }
예제 #4
0
        public void Test_IsEmpty()
        {
            GDMDate instance = new GDMDate(null);

            Assert.AreEqual(true, instance.IsEmpty());
        }
예제 #5
0
 public override bool IsEmpty()
 {
     return(base.IsEmpty() && (fTasks.Count == 0) && (fCommunications.Count == 0) && (fGroups.Count == 0) &&
            string.IsNullOrEmpty(fResearchName) && (fPriority == GDMResearchPriority.rpNone) &&
            (fStatus == GDMResearchStatus.rsDefined) && fStartDate.IsEmpty() && (fStopDate.IsEmpty()) && (fPercent == 0));
 }
예제 #6
0
 public override bool IsEmpty()
 {
     return(base.IsEmpty() && string.IsNullOrEmpty(fGoal) && (fPriority == GDMResearchPriority.rpNone) &&
            fStartDate.IsEmpty() && (fStopDate.IsEmpty()));
 }