public static void ShowErrorMsg(string message, string captionTitle, ProgressWindow progress)
 {
     Logger.Info("Showing Error Message prompt");
     if (!App.sOpt.s)
     {
         progress.Dispatcher.Invoke((Delegate)(() =>
         {
             CustomMessageWindow customMessageWindow = new CustomMessageWindow();
             customMessageWindow.TitleTextBlock.Text = LocaleStrings.GetLocalizedString(captionTitle, "");
             customMessageWindow.BodyTextBlock.Text = LocaleStrings.GetLocalizedString(message, "");
             customMessageWindow.AddButton(ButtonColors.Blue, "STRING_EXIT", new EventHandler(DataManagerUtils.DataManagerUtils_ExitBtnHandler), (string)null, false, (object)null, true);
             customMessageWindow.CloseButtonHandle(new EventHandler(DataManagerUtils.DataManagerUtils_ExitBtnHandler), (object)null);
             customMessageWindow.Owner = (Window)progress;
             customMessageWindow.ShowInTaskbar = true;
             customMessageWindow.Title = Strings.ProductDisplayName;
             progress.Hide();
             customMessageWindow.ShowDialog();
         }));
     }
     else
     {
         DataManagerUtils.DataManagerUtils_ExitBtnHandler((object)null, (EventArgs)null);
     }
 }
 public Backup(ProgressWindow progress)
 {
     this.progress = progress;
 }