public void AddBugReport(LocDataElement location, DateTime fromdate, DateTime todate, Prayers[] p) { BugReport r = new BugReport(location, fromdate, todate, p); reports.Add(r); }
private string buildErrorReport(BugReport r) { string result = string.Empty; result += "City : " + r.Location.City + Environment.NewLine; result += "Country : " + r.Location.Country + Environment.NewLine; result += "Latitude : " + r.Location.Latitude + Environment.NewLine; result += "Longitude : " + r.Location.Longitude + Environment.NewLine; result += "GMTDiff : " + r.Location.GMTDiff + Environment.NewLine; result += "Daylight Adjustment : " + r.Location.DaylightAdjustment + Environment.NewLine; result += "DateRange : " + r.FromDate.ToLongDateString() + " -- " + r.ToDate.ToLongDateString() + Environment.NewLine; result += "Prayers : " + Environment.NewLine; foreach (Prayers prayer in r.Prayers) { result += prayer.ToString() + Environment.NewLine; } return result; }