Global exception handling. Threadsafe MessageBoxAlertAdminDialog

This commit is contained in:
Robert McRackan 2022-05-27 13:38:28 -04:00
parent 5a80a0cc06
commit 114925ebce
9 changed files with 56 additions and 20 deletions

View file

@ -46,7 +46,7 @@ namespace LibationWinForms.Dialogs
if (template is null)
{
MessageBoxLib.ShowAdminAlert($"Programming error. {nameof(EditTemplateDialog)} was not created correctly", "Edit template error", new NullReferenceException($"{nameof(template)} is null"));
MessageBoxLib.ShowAdminAlert(this, $"Programming error. {nameof(EditTemplateDialog)} was not created correctly", "Edit template error", new NullReferenceException($"{nameof(template)} is null"));
return;
}