public OpenFolderDialogEdit() { OpenDialog = () => { OpenFolderDialogService openFolderDialog = new OpenFolderDialogService(); if (openFolderDialog.ShowDialog(Text) == true) { EditValue = openFolderDialog.Folder.Path; FileOKCommand?.Execute(EditValue); } }; }
public OpenFileDialogEdit() { OpenDialog = () => { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = FileFilter; if (!String.IsNullOrEmpty(Text)) { openFileDialog.FileName = Text; openFileDialog.InitialDirectory = Path.GetDirectoryName(Text); } if (openFileDialog.ShowDialog() == true) { EditValue = openFileDialog.FileName; FileOKCommand?.Execute(EditValue); } }; }