public OpenFolderDialogEdit()
 {
     OpenDialog = () =>
     {
         OpenFolderDialogService openFolderDialog = new OpenFolderDialogService();
         if (openFolderDialog.ShowDialog(Text) == true)
         {
             EditValue = openFolderDialog.Folder.Path;
             FileOKCommand?.Execute(EditValue);
         }
     };
 }
Example #2
0
 public void SetSourcePath()
 {
     if (UseExcelFileSource)
     {
         OpenFileDialogService.Filter = ExcelFilter;
         if (OpenFileDialogService.ShowDialog() == true)
         {
             FilePath = OpenFileDialogService.GetFullFileName();
         }
     }
     else
     {
         OpenFolderDialogService.Title = Properties.Resources.Import;
         if (OpenFolderDialogService.ShowDialog() == true)
         {
             FolderPath = OpenFolderDialogService.Folder.Path;
         }
     }
 }