예제 #1
0
 public UpDownWrapper(StorageType storageType)
 {
     this.StorageType    = storageType;
     fileManagement      = FolderFileBantuan.GetInstance.DictFile[this.StorageType];
     fileManagementAsync = FolderFileBantuan.GetInstance.DictFileAsync[this.StorageType];
     folderManagement    = FolderFileBantuan.GetInstance.DictFolder[this.StorageType];
 }
예제 #2
0
 public StorageReturnValue CheckFolderStorageExistAndCreate(string folderName)
 {
     result = new StorageReturnValue(false, FileStorageProperties.GetInstance.WrongInitialManagement, null);
     if (!string.IsNullOrEmpty(folderName))
     {
         IFolderManagement folderManagement = FolderFileBantuan.GetInstance.DictFolder[FileStorageProperties.GetInstance.FileStorageType];
         result = folderManagement.CheckFolderAndCreate(folderName);
     }
     return(result);
 }