using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TProduct { /// /// 文件参数 /// public class FileParas { public FileParas() { } /// /// 文件是否加密 /// public bool IsEncryptionFile { get { return _isencryptionfile; } set { _isencryptionfile = value; } } private bool _isencryptionfile = false; /// /// 文件加密密码 /// public string FileEncryptionKey { get { return _fileencryptionkey; } set { _fileencryptionkey = value; } } private string _fileencryptionkey = "123456"; /// /// 数据路径 /// public string DataPath { set { var val = System.IO.Path.GetFileNameWithoutExtension(value); _dataFolder = val; } get { if (string.IsNullOrEmpty(_dataFolder)) { return AppDomain.CurrentDomain.BaseDirectory + "Data"; } return AppDomain.CurrentDomain.BaseDirectory + System.IO.Path.GetFileNameWithoutExtension(_dataFolder); } } private string _dataFolder = "Data"; /// /// 本地数据文件夹 /// public string LocalDataFolderName { get { return _localDataFolderName; } set { _localDataFolderName = value; } } private string _localDataFolderName = "LocalData"; /// /// 本地文件文件夹 /// public string LocalFileFolderName { get { return _localfilefoldername; } set { _localfilefoldername = value; } } private string _localfilefoldername = "LocalFile"; /// /// 文件缓存文件夹 /// public string FileCacheFolderName { get { return _fileCacheFolderName; } set { _fileCacheFolderName = value; } } private string _fileCacheFolderName = "FileCache"; } }