11 lines
260 B
Plaintext
11 lines
260 B
Plaintext
1.多选文件夹
|
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
|
|
|
CommonOpenFileDialog dia = new CommonOpenFileDialog();
|
|
dia.IsFolderPicker = true;
|
|
dia.Multiselect = true;
|
|
|
|
if (dia.ShowDialog() == CommonFileDialogResult.Ok)
|
|
{
|
|
var data = dia.FileNames.ToList();
|
|
} |