Esempio n. 1
0
        public static void Save(ProjectConfig config, string filePath)
        {
            string fileText = JsonConvert.SerializeObject(config, Formatting.Indented);

            File.WriteAllText(filePath, fileText);
            HPPConfig.GetInstance().LastProjectPath = filePath;
        }
Esempio n. 2
0
        /*
         *  -------
         *  Methods
         *  -------
         */
        public static ProjectConfig Open(string filePath)
        {
            string fileText = File.ReadAllText(filePath);

            HPPConfig.GetInstance().LastProjectPath = filePath;
            return(JsonConvert.DeserializeObject <ProjectConfig>(fileText));
        }