public static void Show(string message, string details) { if (isErrorWindowVisible) return; isErrorWindowVisible = true; var window = new ErrorWindow(message, details); window.Closed += (sender, args) => isErrorWindowVisible = false; window.Show(); }
public static void Show(string text) { if (isErrorWindowVisible) return; isErrorWindowVisible = true; var window = new ErrorWindow(text); window.Closed += (sender, args) => isErrorWindowVisible = false; window.Show(); }