public void ShowDialog(string content, bool showButton) { waitDialog = new WaitDialog(this); waitDialog.SetDisplayConfiguration(content, showButton); Overlay.Visibility = System.Windows.Visibility.Visible; waitDialog.ShowDialog(); }