public bool Save() { bool IsOk = true; DirectoryEx.DeleteFolder1(Path); if (!DirectoryEx.Exist(Path)) { DirectoryEx.Create(Path); } IsOk = IsOk && XML <LightCrlParaManager> .Write(this, Path + @"\" + "LightCrlParaManager.xml"); return(IsOk); }
public bool Save() { bool IsOk = true; string ExePath = System.Environment.CurrentDirectory; DirectoryEx.DeleteFolder1(ExePath + @"\" + ParaPath); if (!DirectoryEx.Exist(ExePath + @"\" + ParaPath)) { DirectoryEx.Create(ExePath + @"\" + ParaPath); } IsOk = IsOk && XML <List <ProjectMsg> > .Write(this.ProjectMsgList, ExePath + @"\" + ParaPath + @"\" + "ProjectMsgList.xml"); ProjectPara ProjectParaI = new ProjectPara(); for (int i = 0; i < this.ProjectMsgList.Count(); i++) { ProjectParaI = this.ProjectParaList[i]; IsOk = IsOk && ProjectParaI.Save(ExePath + @"\" + ParaPath + @"\" + i.ToString() + this.ProjectMsgList[i].ProjectDescribe + @"\"); } return(IsOk); }