Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e40d971de0 |
@@ -128,6 +128,17 @@ namespace BulkArchiveMailer.AddIn.UI
|
||||
|
||||
private void UpdateSummaryLabel()
|
||||
{
|
||||
if (rows == null)
|
||||
{
|
||||
// Can be invoked before RunScan() ever ran - most notably,
|
||||
// WinForms fires DataGridView.CellValueChanged as a side
|
||||
// effect of DataGridViewColumn.HeaderText assignments in
|
||||
// InitializeComponent(), i.e. before the constructor (and
|
||||
// therefore RunScan()) has had a chance to populate `rows`.
|
||||
// Nothing to summarize yet in that case.
|
||||
return;
|
||||
}
|
||||
|
||||
var ready = rows.Count(r => r.Job.Status == SendStatus.Ready);
|
||||
var already = rows.Count(r => r.Job.Status == SendStatus.AlreadySent);
|
||||
var errors = rows.Count(r => r.Job.Status == SendStatus.Error);
|
||||
|
||||
Reference in new issue
Block a user