public static void ShowDialog(IWin32Window parent, string text) { Dialog d = new Dialog(text); d.ShowDialog(parent); }