private void RenderTrafficCitationListBoxRow(TrafficCitation citation, ListBoxRow row) { var dateString = citation.CitationTimeDate.ToLocalTimeString(DateOutputPart.DATE); row.Text = String.Format("{0}: {1}", dateString, citation.CitationReason); row.SetToolTipText(String.Format("Fine {0}", citation.CitationAmount)); }
private void RenderArrestReportListBoxRow(ArrestReport report, ListBoxRow row) { var dateString = report.ArrestTimeDate.ToLocalTimeString(DateOutputPart.DATE); row.Text = String.Format("{0} Charges: {1}", dateString, report.Charges.Count); row.SetToolTipText(String.Format("Arrested {0}, {1} charges with {2} felony", dateString, report.Charges.Count, report.Charges.Count(x => x.IsFelony))); }