/// <summary> /// 从目录开始压缩任务开始按钮点击事件 /// </summary> private void FolderTaskBegin() { LastTaskConfig config = new LastTaskConfig { JsSourceFolder = this.textBox_FolderJs_SourcePath.Text.Trim(), JsTargetFolder = this.textBox_FolderJs_TargetPath.Text.Trim(), JsRenameFixed = this.radioButton_FolderJs_ReName_1.Checked ? string.Empty : ".min", CssSourceFolder = this.textBox_FolderCss_SourcePath.Text.Trim(), CssTargetFolder = this.textBox_FolderCss_TargetPath.Text.Trim(), CssRenameFixed = this.radioButton_FolderCss_ReName_1.Checked ? string.Empty : ".min", CssImageToBase64MaxSize = this.checkBox_FolderCss_ImageToBase64.Checked ? (int)this.numericUpDown_FolderCss_ImageToBase64MaxSize.Value : 0, FolderWatched = this.radioButton_TaskType_Watch.Checked }; if (config.FolderWatched) { config.SaveLastTaskConfig(LastTaskConfigFileNamePath); } else { LastTaskConfigFileNamePath.RemoveLastTaskConfig(); } BeginFolderTask(config); }