public static void ShowTextDialog(Window owner, string title, string text)
 {
     var dialog = new TextOutputWindow(owner, title, text);
     dialog.ShowDialog();
 }