private bool SaveToFile(ProjectInfo projectInfo) { long projectSaveSize = this.GetProjectSaveSize(projectInfo.projectLossPath); if (!DataValidate.IsDiskSpaceEnough(projectInfo.projectLossPath, projectSaveSize)) { this.LastErrMsg = "Save project failed, there is not enough space of disk!"; return(false); } this.m_Result = true; new Thread(new ParameterizedThreadStart(this.SaveProject)).Start(projectInfo); this.m_SavingForm.ShowDialog(); return(this.m_Result); }