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); }
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); }
public override bool IsEmpty() { return(base.IsEmpty() && string.IsNullOrEmpty(fCommName) && fDate.IsEmpty() && fCorresponder.IsEmpty()); }
public void Test_IsEmpty() { GDMDate instance = new GDMDate(null); Assert.AreEqual(true, instance.IsEmpty()); }
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)); }
public override bool IsEmpty() { return(base.IsEmpty() && string.IsNullOrEmpty(fGoal) && (fPriority == GDMResearchPriority.rpNone) && fStartDate.IsEmpty() && (fStopDate.IsEmpty())); }