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]; }
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); }