using XFEExtension.NetCore.AutoConfig; using XFEToolBox.Core.Model; namespace XFEToolBox.Profiles.CrossVersionProfiles; public partial class DownloadProfile { /// /// 是否使用一般的下载方式 /// [ProfileProperty] private bool useNormalDownloader = false; /// /// 下载完成后是否自动运行下载文件 /// [ProfileProperty] private bool autoRunWhenComplete = true; /// /// 下载完成后是否打开目录 /// [ProfileProperty] private bool openFolderWhenComplete = true; /// /// 用户是否同意了下载协议 /// [ProfileProperty] private bool downloadAgreementAccepted = false; /// /// 下载的目标文件夹 /// [ProfileProperty] private string downloadDirectory = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\\Downloads"; /// /// 加速下载的线程数 /// [ProfileProperty] private int downloadThread = 9; public DownloadProfile() => ProfilePath = @$"{AppPath.LocalProfile}\{typeof(DownloadProfile)}.xprofile"; }