private string getDateDueString() { if (DateDue.HasValue) { return(DateDue.ToString()); } return("N/A"); }
public override string ToString() { return(string.Format( "Record ID: {7}{8} internal id: {9}\n" + "{0}: {1} - {2} at {3}\n" + "{4}: {5} at {6}\n{10}", Period, DateFrom.ToString("MMM d yyyy", CultureInfo.InvariantCulture), DateTo.ToString("MMM d yyyy", CultureInfo.InvariantCulture), DateDue.ToString("MMM d yyyy", CultureInfo.InvariantCulture), RegistrationNo, BusinessName, string.Join(" ", BusinessAddress), RecordID, IsDeleted ? " DELETED" : "", InternalID, string.Join("\n", Data.Select(pair => string.Format("{0}: {1}", pair.Key, pair.Value))) )); } // ToString