public EmailDialog(string message) { WindowStyle = WindowStyle.ToolWindow; Height = Width = 600; Title = "Email"; Background = Window2.ChangeBackgroundColor(Colors.BlanchedAlmond); if (File.Exists("MailServerInfo")) { CreateMailUi(message); ShowDialog(); } else { var msd = new MailSettingsDialog(); msd.Show(); } }