private void ReconcileMonthlyReport(DateTime dt) { // format the name of the text file string date = string.Format(@"Reports\{0,2:D2}{1,2:D2}", dt.Year, dt.Month); // check if the report generation was successful List <string> ls = billing.GenerateMonthlyBillingSummary(date); if (ls.Count != 0) { snackBar.MessageQueue.Enqueue("SUCCESSFULLY CREATED"); } else { snackBar.MessageQueue.Enqueue("DID NOT GENERATE"); } tbReportDisplay.Text = ""; tbReportTitle.Content = "Monthly Report Summary"; foreach (string s in ls) { tbReportDisplay.Text += s + '\n'; } UpdateReportTree(); }