public bool Save() { bool IsOk = true; DirectoryEx.Delete(ParaPath); if (!DirectoryEx.Exist(ParaPath)) { DirectoryEx.Create(ParaPath); } IsOk = IsOk && XML <BindingList <CameraPara> > .Write(CameraParaList, ParaPath + @"\" + "CameraParaList.xml"); return(IsOk); }
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); }
public bool Save() { bool IsOk = true; //DirectoryEx.Delete(ParaPath); if (!DirectoryEx.Exist(ParaPath)) { DirectoryEx.Create(ParaPath); } int Index = 0; foreach (CaliParam item in CaliParaList) { string Pathi = ParaPath + @"\" + Index.ToString() + @"\"; if (!FileLib.DirectoryEx.Exist(Pathi)) { FileLib.DirectoryEx.Create(Pathi); } IsOk = IsOk && item.Save(ParaPath + @"\" + Index.ToString() + @"\"); Index++; } return(IsOk); }