/// /// Give the user an opportunity to create new reports /// for those bills having the highest scores. public void Run(Form1 form1, UnreportedBillsForm upreported_form) { var start_time = DateTime.Now; try { LogAndDisplay(form1.txtCreatesProgress, "Showing bills that have no report."); var bills_with_no_position = CollectNoPositionBills(); var bills_for_display = Convert(bills_with_no_position); // Display those bills that have no report. if (bills_for_display.Any()) { upreported_form.PrepareDataGridView(); upreported_form.AddRows(bills_for_display); upreported_form.ShowDialog(); } else { MessageBox.Show("All bills apparently have an associated report. I do not believe this."); } } catch (Exception ex) { LogAndThrow($"CreateNewReports.Run: {ex.Message}."); // } var elapsed = DateTime.Now - start_time; LogAndDisplay(form1.txtCreatesProgress, $"Through with bill report creation. Elapsed Time: {elapsed.ToString("c")} "); }