liuaoran пре 2 година
родитељ
комит
6a0b47ba8a

+ 0 - 1
PDF Office/ViewModels/Dialog/ToolsDialogs/SaftyDialogs/SetPasswordDialogViewModel.cs

@@ -252,7 +252,6 @@ namespace PDF_Office.ViewModels.Dialog.ToolsDialogs.SaftyDialogs
 
         public void SetOpenPassword(object e)
         {
-            MessageBoxEx.Show("");
             var chk = e as CheckBox;
             if (chk != null)
             {

+ 9 - 0
PDF Office/ViewModels/HomePanel/PDFTools/QuickToolsContentViewModel.cs

@@ -3,6 +3,7 @@ using PDF_Office.Helper;
 using PDF_Office.Model;
 using PDF_Office.Model.Dialog.HomePageToolsDialogs.HomePageBatchProcessing;
 using PDF_Office.Model.PDFTool;
+using PDF_Office.Views;
 using PDFSettings;
 using Prism.Commands;
 using Prism.Mvvm;
@@ -162,6 +163,14 @@ namespace PDF_Office.ViewModels.HomePanel.PDFTools
                         printvalue.Add(ParameterNames.PDFViewer, viewer);
                         printvalue.Add(ParameterNames.FilePath, dlg.FileName);
                         dialogs.ShowDialog(DialogNames.HomePagePrinterDialog, printvalue, e => { });
+                        try
+                        {
+                            dialogs.ShowDialog("MainWindow");
+                        }
+                        catch
+                        {
+
+                        }
                         break;
 
                     case PDFFnType.Security: