Ejemplo n.º 1
0
 /// <summary>
 /// 选择桌面
 /// </summary>
 private void SelectDesktop()
 {
     using (var dialog = FolderUtil.GetFolderBrowserDialog())
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             var destFolder = dialog.SelectedPath;
             var isEndsWith = destFolder.EndsWith("Desktop");
             DestFolder = isEndsWith ? destFolder : Path.Combine(destFolder, "Desktop");
         }
     }
 }