示例#1
0
        private void OnAddDirectoryPath()
        {
            var dialog = new FolderBrowserDialog
            {
                ShowNewFolderButton = true
            };
            var result = dialog.ShowDialog();

            LocationObject.DirectoryPath = result == DialogResult.OK
                ? FilePathUtils.ReplaceUserSpecificPath(dialog.SelectedPath)
                : dialog.SelectedPath;
        }