private void btnCopyByDate_Click(object sender, EventArgs e) { new System.Threading.Thread(() => { try { UIInProcess(true); FileCopyByGroup fileCopyByGroup = ConstructFileCopyByGroup(); fileCopyByGroup.Execute(); SaveConfig(); } catch (Exception ex) { CommFunction.WriteMessage(ex.Message); } finally { UIInProcess(false); } GC.Collect(); }).Start(); }
private FileCopyByGroup ConstructFileCopyByGroup() { FileCopyByGroup retVal = new FileCopyByGroup(); retVal.SetFileSelectParm(this.GetFormFileSelParm()); retVal.SetFunctionRule(chkModMove.Checked); return(retVal); }
private FileCopyByGroup ConstructFileCopyByGroup() { FileCopyByGroup retVal = new FileCopyByGroup(); retVal.SetFileSelectParm(this.GetFormFileSelParm()); retVal.SetFunctionRule(chkModMove.Checked); return retVal; }