Beispiel #1
0
        private void UploadFileList(FtpUploadDirectory ftpUpDir, UploadFileListChangedAction action)
        {
            this._uploadDirList = new List <FtpUploadDirectory>();

            this._uploadFileListChangedAction = action;
            this._uploadDirList.Add(ftpUpDir);
            this._uploadDirIndex   = 0;
            this._uploadFileIndex  = 0;
            this._uploadTotalCount = ftpUpDir.Files.Count;
            this._uploadCount      = 0;

            if ((_uploadDirList.Count > 0 && _uploadDirList[0].Files.Count > 0))
            {
                NextUploadFileList();
            }
            else
            {
                RaiseUploadFileListAsyncCompleted(new FtpAsyncCompletedEventArgs(null, false));
            }
        }
Beispiel #2
0
 /// <summary>
 /// 리스트 안의 모든 파일들 업로드 ( WebClient )
 /// </summary>
 /// <param name="uploadDirList">업로드 폴더 정보</param>
 public void UploadFileListAsyncWC(FtpUploadDirectory ftpUpDir)
 {
     UploadFileList(ftpUpDir, UploadFileAsyncWC);
 }