|
@@ -27,6 +27,8 @@ namespace PDF_Office.ViewModels.Dialog.HomePageToolsDialogs
|
|
|
private int fileNamesIndex = 0;
|
|
|
private int FileNameNumber = 0;
|
|
|
|
|
|
+ public IDialogService dialogs;
|
|
|
+
|
|
|
public List<int> fileNamesView = new List<int>();
|
|
|
|
|
|
public HomePagePictureToPDFDialogModel pictureToPDFModel=new HomePagePictureToPDFDialogModel();
|
|
@@ -124,7 +126,7 @@ namespace PDF_Office.ViewModels.Dialog.HomePageToolsDialogs
|
|
|
public DelegateCommand SelectFileCommand { get; set; }
|
|
|
|
|
|
#endregion
|
|
|
- public HomePagePictureToPDFDialogViewModel()
|
|
|
+ public HomePagePictureToPDFDialogViewModel(IDialogService dialogs)
|
|
|
{
|
|
|
ToPDFCommand = new DelegateCommand(topdf);
|
|
|
ADDPictureCommand = new DelegateCommand(addpicture);
|
|
@@ -135,7 +137,7 @@ namespace PDF_Office.ViewModels.Dialog.HomePageToolsDialogs
|
|
|
ImagesDataTable.Columns.Add("FileSize");
|
|
|
ImagesDataTable.Columns.Add("FileState");
|
|
|
ImagesCurrentDataTable.Columns.Add("FileState");
|
|
|
-
|
|
|
+ this.dialogs = dialogs;
|
|
|
}
|
|
|
#region 逻辑函数
|
|
|
private void topdf() {
|