Exemplo n.º 1
0
        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);
        }