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