コード例 #1
0
        private void btnUploadtoGGDrive_Click(object sender, RoutedEventArgs e)
        {
            string id = GoogleDriveFilesRepository.CreateFolder("1, Demo");

            foreach (FileDesignDTO dgr in dgvImageInfo.ItemsSource)
            {
                Thread thread = new Thread(() =>
                {
                    UploadTOGGDrive(dgr, id);
                });
                thread.IsBackground = true;
                thread.Start();
            }
        }
コード例 #2
0
 public ActionResult CreateFolder(String FolderName)
 {
     GoogleDriveFilesRepository.CreateFolder(FolderName);
     return(RedirectToAction("GetGoogleDriveFiles"));
 }