Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e40d971de0 | ||
|
|
f50624023a |
No files matched your search
@@ -60,7 +60,7 @@ namespace BulkArchiveMailer.AddIn
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(
|
||||
"Не удалось открыть окно массовой рассылки: " + ex.Message,
|
||||
"Не удалось открыть окно массовой рассылки: " + ex.ToString(),
|
||||
"BulkArchiveMailer",
|
||||
MessageBoxButtons.OK,
|
||||
MessageBoxIcon.Error);
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace BulkArchiveMailer.AddIn.UI
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(this, "Не удалось прочитать настройки: " + ex.Message, "BulkArchiveMailer", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(this, "Не удалось прочитать настройки: " + ex.ToString(), "BulkArchiveMailer", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Close();
|
||||
return;
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace BulkArchiveMailer.AddIn.UI
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(
|
||||
"Не удалось прочитать config.json (" + AppSettings.ConfigFilePath + "):\n" + ex.Message +
|
||||
"Не удалось прочитать config.json (" + AppSettings.ConfigFilePath + "):\n" + ex.ToString() +
|
||||
"\n\nБудут показаны пустые настройки — сохранение перезапишет файл заново.",
|
||||
"BulkArchiveMailer",
|
||||
MessageBoxButtons.OK,
|
||||
@@ -231,7 +231,7 @@ namespace BulkArchiveMailer.AddIn.UI
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(this, "Не удалось сохранить настройки: " + ex.Message, "BulkArchiveMailer", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show(this, "Не удалось сохранить настройки: " + ex.ToString(), "BulkArchiveMailer", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user