C# OpenFileDialog
OpenFileDialog dlg = new OpenFileDialog();
dlg.Multiselect = true;
if (dlg.ShowDialog() == true)
{
var result = await Upload(new List<string>(dlg.SafeFileNames), new List<string>(dlg.FileNames));
MessageBox.Show(result ? "성공" : "실패");
}
'C# > File' 카테고리의 다른 글
C# 텍스트 (txt) 파일 저장 (0) | 2020.07.25 |
---|