internal static void ShowFatalError(string workingDir, string title, string error) { _mainWindow = CreateWindow(workingDir, $"smtp4dev - {title}"); _mainWindow.LoadRawString($"<html><h1>{HttpUtility.HtmlEncode(title)}</h1><pre>{HttpUtility.HtmlEncode(error)}</pre><button type='button' onclick='window.location = \'https://www.google.co.uk\''>Close</button></body></html>"); _mainWindow.WaitForClose(); }